From 09a04c49709bc2e2429c1bfbd44ca34e22e22113 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 7 Feb 2024 13:44:28 +0100 Subject: Python tests: Run in thread --- wrappers/python/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'wrappers/python/tests.py') diff --git a/wrappers/python/tests.py b/wrappers/python/tests.py index 61d4ef7..c037b13 100644 --- a/wrappers/python/tests.py +++ b/wrappers/python/tests.py @@ -4,8 +4,9 @@ import unittest import eduvpn_common.main as eduvpn import eduvpn_common.event as event from eduvpn_common.state import State, StateType -import sys import os +import sys +import threading # Import project root directory where the selenium python utility is sys.path.append( @@ -18,7 +19,8 @@ from selenium_eduvpn import login_eduvpn class Handler: @event.class_state_transition(State.OAUTH_STARTED, StateType.ENTER) def on_oauth(self, old_state: State, data: str): - login_eduvpn(data) + t1 = threading.Thread(target=login_eduvpn, args=(data,)) + t1.start() class ConfigTests(unittest.TestCase): -- cgit v1.2.3