diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-08-16 13:41:12 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-08-16 13:41:12 +0200 |
| commit | de8b2adbcc4a39c359f3dd30249ac4ee225d4b9c (patch) | |
| tree | ba51a86a850e24bb54637becc7834a38c51d2429 /wrappers/python | |
| parent | fec6ea1eba9cee325bbd9d82aa71b8ebf5ef90b0 (diff) | |
Refactor: Use an interface for the data in the FSM callback
Diffstat (limited to 'wrappers/python')
| -rw-r--r-- | wrappers/python/tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wrappers/python/tests.py b/wrappers/python/tests.py index 5cf5c25..60d3cce 100644 --- a/wrappers/python/tests.py +++ b/wrappers/python/tests.py @@ -6,6 +6,7 @@ from eduvpn_common.state import State, StateType import webbrowser import sys import os +import json # Import project root directory where the selenium python utility is sys.path.append( @@ -22,8 +23,8 @@ class ConfigTests(unittest.TestCase): _eduvpn.register() @_eduvpn.event.on(State.OAUTH_STARTED, StateType.Enter) - def oauth_initialized(old_state, url): - login_eduvpn(url) + def oauth_initialized(old_state, url_json): + login_eduvpn(json.loads(url_json)) server_uri = os.getenv("SERVER_URI") if not server_uri: |
