Skip to content

Commit 9a95c4e

Browse files
committed
add test
1 parent fc9a1ff commit 9a95c4e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_models.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ def test_get_graph(self, fixturedir):
111111
print(str(graph))
112112
assert set(str(graph).splitlines()) == set(expected_graph)
113113

114+
def test_change_graph_direction(self, fixturedir):
115+
workflows.SimpleWorkflow.rankdir = "TD"
116+
graph = workflows.SimpleWorkflow.get_graph()
117+
assert isinstance(graph, Digraph)
118+
114119
def test_get_graph_svg(self, fixturedir):
115120
svg = workflows.SimpleWorkflow.get_graph_svg()
116121
assert isinstance(svg, SafeString)

0 commit comments

Comments
 (0)