diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-01-02 15:04:25 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-01-02 15:04:25 +0100 |
| commit | bd388782c73a8d0f31ddb4719e36fd8ec11f6e08 (patch) | |
| tree | 47e320263654675c912ad15bc7a85ee1f670bc19 /wrappers/python/tests.py | |
| parent | ec93d88ca6475483f6d90b33a98ead0d176a820a (diff) | |
Python tests: Use let's connect to disable discovery and warn env
Diffstat (limited to 'wrappers/python/tests.py')
| -rw-r--r-- | wrappers/python/tests.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/wrappers/python/tests.py b/wrappers/python/tests.py index 555a0bb..c178973 100644 --- a/wrappers/python/tests.py +++ b/wrappers/python/tests.py @@ -18,7 +18,7 @@ from selenium_eduvpn import login_eduvpn class ConfigTests(unittest.TestCase): def testConfig(self): - _eduvpn = eduvpn.EduVPN("org.eduvpn.app.linux", "testconfigs", "en") + _eduvpn = eduvpn.EduVPN("org.letsconnect-vpn.app.linux", "testconfigs", "en") # This can throw an exception _eduvpn.register() @@ -28,7 +28,9 @@ class ConfigTests(unittest.TestCase): server_uri = os.getenv("SERVER_URI") if not server_uri: - self.fail("No SERVER_URI environment variable given") + print("No SERVER_URI environment variable given, skipping...") + _eduvpn.deregister() + return # This can throw an exception _eduvpn.add_custom_server(server_uri) @@ -38,7 +40,7 @@ class ConfigTests(unittest.TestCase): _eduvpn.deregister() def testDoubleRegister(self): - _eduvpn = eduvpn.EduVPN("org.eduvpn.app.linux", "testconfigs", "en") + _eduvpn = eduvpn.EduVPN("org.letsconnect-vpn.app.linux", "testconfigs", "en") # This can throw an exception _eduvpn.register() # This should throw |
