diff --git a/tests/conftest.py b/tests/conftest.py index 458a5db423..e17a9e77cf 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -619,3 +619,12 @@ def count_servers(): # assert num_dpf_exe == 1 request.addfinalizer(count_servers) + + +@pytest.fixture(scope="session", autouse=True) +def license_context(): + if SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_6_2: + with core.LicenseContextManager(increment_name="preppost", license_timeout_in_seconds=1.0): + yield + else: + yield