From ea14c2a0c2be6701d0659e0d6f5e3f3307dc6a13 Mon Sep 17 00:00:00 2001 From: Benny Date: Tue, 5 Dec 2023 12:25:32 +0100 Subject: [PATCH] Name test nodes by testname instead of uuid --- octopoes/tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/octopoes/tests/conftest.py b/octopoes/tests/conftest.py index ecd524be59..34b69e7fda 100644 --- a/octopoes/tests/conftest.py +++ b/octopoes/tests/conftest.py @@ -222,9 +222,9 @@ def bit_runner(mocker) -> BitRunner: @pytest.fixture -def xtdb_http_client(app_settings: Settings) -> XTDBHTTPClient: - testnode = f"test-{str(uuid.uuid4())}" - client = get_xtdb_client(app_settings.xtdb_uri, testnode, app_settings.xtdb_type) +def xtdb_http_client(request, app_settings: Settings) -> XTDBHTTPClient: + test_node = f"test-{request.node.originalname}" + client = get_xtdb_client(app_settings.xtdb_uri, test_node, app_settings.xtdb_type) client._session.mount("http://", HTTPAdapter(max_retries=Retry(total=3, backoff_factor=1))) return client