From 52078ddd3f80bf0559c0d2d25514d5ecf205ae08 Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:33:29 +0200 Subject: [PATCH] test: reducing the tests to only one --- tests/test_licensing.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/tests/test_licensing.py b/tests/test_licensing.py index ed2f88daf0..476d1d7bca 100644 --- a/tests/test_licensing.py +++ b/tests/test_licensing.py @@ -303,23 +303,16 @@ def test_stop_license_checker(): license_checker.start() time.sleep(1) + prev_stop = license_checker.stop + prev_is_connected = license_checker.is_connected + license_checker.stop = True # Overwriting the connect attribute # so the thread is killed right after. time.sleep(2) - assert not license_checker._lic_file_thread.is_alive() - - -@requires("ansys-tools-path") -def test_is_connected_license_checker(): - license_checker = licensing.LicenseChecker() - license_checker.start() - time.sleep(1) - - license_checker.is_connected = True # Overwriting the connect attribute - # so the thread is killed right after. - time.sleep(2) assert not license_checker._lic_file_thread.is_alive() + assert not prev_stop + assert not prev_is_connected @skip_no_lic_bin