How to use the pyrfc.__version__ function in pyrfc

To help you get started, we’ve selected a few pyrfc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / PyRFC / tests / test_connection.py View on Github external
def test_version_and_options_getters(self):
        with open("VERSION", "r") as f:
            VERSION = f.read().strip()
            version = self.conn.version
            assert "major" in version
            assert "minor" in version
            assert "patchLevel" in version
            assert pyrfc.__version__ == VERSION
        assert all(k in self.conn.options for k in ("dtime", "return_import_params", "rstrip"))