From de8b2adbcc4a39c359f3dd30249ac4ee225d4b9c Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 16 Aug 2022 13:41:12 +0200 Subject: Refactor: Use an interface for the data in the FSM callback --- wrappers/python/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wrappers/python') 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: -- cgit v1.2.3