Skip to content

Commit e14fa3e

Browse files
Fix bad test
1 parent 5c49000 commit e14fa3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_dot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ def test_dot_add_subgraph():
104104
assert len(d.subgraphs()) == 1
105105
assert d.subgraphs()[0].kind() == Dot.Kind.subgraph
106106
assert (
107-
d.to_string()
108-
== 'digraph pets {\n\nsubgraph cluster_pets {\n label="pets"\n '
107+
d.to_string() == 'digraph pets {\n\nsubgraph cluster_pets {\n label="pets"\n '
109108
'cluster_pets_cat [label="cat"]\n cluster_pets_dog '
110109
'[label="dog"]\n cluster_pets_cat -> cluster_pets_dog '
111110
'[constraint="false"]\n}\n cat\n dog\n cat -> dog\n}'
@@ -144,6 +143,7 @@ def test_dot_colors():
144143

145144
def test_dot_kind():
146145
d = Dot()
146+
d.kind(Dot.Kind.digraph)
147147
assert d.kind() == Dot.Kind.digraph
148148
d.kind(Dot.Kind.graph)
149149
assert d.kind() == Dot.Kind.graph

0 commit comments

Comments
 (0)