Skip to content

Commit 6878253

Browse files
edit test
1 parent 4efc4ac commit 6878253

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_shapes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,13 @@ def test_workflow_execution_add_graph_exists(
149149
assert len(modified) == 1
150150
datetime = modified[0].split()[-2]
151151
assert DATETIME_PATTERN.match(datetime)
152-
assert datetime != '"2025-02-05T13:28:07.246Z"^^<http://www.w3.org/2001/XMLSchema#dateTime>'
153152
result_graph = Graph().parse(data=result_graph_turtle)
153+
test = Graph().parse(f"{FIXTURE_DIR}/test_shapes_add.ttl")
154+
assert result_graph.value(
155+
subject=URIRef(graph_setup.shapes_iri), predicate=DCTERMS.modified
156+
) != test.value(subject=URIRef(graph_setup.shapes_iri), predicate=DCTERMS.modified)
154157
assert len(list(result_graph.objects(predicate=DCTERMS.created))) == 0
155158
result_graph.remove((URIRef(graph_setup.shapes_iri), DCTERMS.modified, None))
156-
test = Graph().parse(f"{FIXTURE_DIR}/test_shapes_add.ttl")
157159
test.remove((URIRef(graph_setup.shapes_iri), DCTERMS.modified, None))
158160
assert isomorphic(result_graph, test)
159161

0 commit comments

Comments
 (0)