Skip to content

Commit

Permalink
use predefined UUID in test
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed May 3, 2024
1 parent 4fe39be commit 435e978
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_pyshacl.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Plugin tests."""

from pathlib import Path
from uuid import uuid4

import pyshacl
import pytest
Expand All @@ -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}"

Expand All @@ -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))
Expand Down

0 comments on commit 435e978

Please sign in to comment.