From 435e97805ae36024837f51b949ff11451a6d7cea Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 3 May 2024 11:30:03 +0100 Subject: [PATCH] use predefined UUID in test --- tests/test_pyshacl.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_pyshacl.py b/tests/test_pyshacl.py index 7646278..2edf613 100644 --- a/tests/test_pyshacl.py +++ b/tests/test_pyshacl.py @@ -1,7 +1,6 @@ """Plugin tests.""" from pathlib import Path -from uuid import uuid4 import pyshacl import pytest @@ -12,7 +11,7 @@ from .utils import TestExecutionContext, needs_cmem -UUID4 = uuid4() +UUID4 = "b36254a836e04279aecf411d2c8e364a" SHACL_GRAPH_URI = f"https://example.org/pyshacl-plugin-test/{UUID4}" VALIDATION_GRAPH_URI = f"https://example.org/pyshacl-plugin-test/{UUID4}" @@ -30,7 +29,7 @@ def _setup(request: pytest.FixtureRequest) -> None: URIRef("https://vocab.eccenca.com/shui/ShapeCatalog"), ) ) - temp_file = f"{uuid4()}.nt" + temp_file = f"{UUID4}.nt" g.serialize(temp_file, format="nt", encoding="utf-8") res = post(SHACL_GRAPH_URI, temp_file, replace=True) Path.unlink(Path(temp_file))