Skip to content

Commit 1b22c13

Browse files
committed
Fix mermaid instance test
1 parent 6ed5112 commit 1b22c13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def test_get_instance_graph(self, db, fixturedir):
136136
def test_get_instance_graph__override(
137137
self, db, stub_worker, fixturedir, admin_client
138138
):
139+
pytest.importorskip("graphviz")
139140
wf = workflows.SimpleWorkflow.start_method()
140141
url = reverse("simpleworkflow:override", args=[wf.pk])
141142
response = admin_client.post(url, data={"next_tasks": ["end"]})
@@ -219,10 +220,11 @@ def test_get_instance_graph_mermaid_with_override(
219220
assert override_id in mermaid
220221

221222
# Check dashed edges (dotted arrow notation in Mermaid)
222-
assert ".-.->" in mermaid
223+
print(mermaid)
224+
assert "-.->" in mermaid
223225

224226
# Check override styling with dashed border
225-
assert f"style {override_id}" in mermaid
227+
assert f"style '{override_id}'" in mermaid
226228
assert "stroke-dasharray" in mermaid
227229

228230
def test_get_instance_graph_mermaid_with_obsolete(self, db):

0 commit comments

Comments
 (0)