Skip to content

Commit

Permalink
Add license context for all tests (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
janvonrickenbach authored Sep 3, 2024
1 parent 507c1e5 commit 59e34d8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,17 @@ def grpc_server():
server.shutdown()


@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


SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_9_0 = meets_version(
get_server_version(core._global_server()), "9.0"
)
Expand Down

0 comments on commit 59e34d8

Please sign in to comment.