summaryrefslogtreecommitdiff
path: root/wrappers/python/tests.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-02-07 13:44:28 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-02-19 14:15:07 +0100
commit09a04c49709bc2e2429c1bfbd44ca34e22e22113 (patch)
tree117b9c0530d6b2cc3dd4f3349df4bda4377ba879 /wrappers/python/tests.py
parentc8e7424f0b9ca963c7454e3297a8d001d67d729d (diff)
Python tests: Run in thread
Diffstat (limited to 'wrappers/python/tests.py')
-rw-r--r--wrappers/python/tests.py6
1 files changed, 4 insertions, 2 deletions
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):