Skip to content

Commit c3a913d

Browse files
committed
Add tests
1 parent f96aab0 commit c3a913d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_widget.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from graphviz_anywidget import GraphvizWidget
2+
3+
4+
def test_widget() -> None:
5+
dot_string = "digraph { a -> b; b -> c; c -> a; }"
6+
pipe_func_graph_widget = GraphvizWidget(dot_source=dot_string)
7+
assert pipe_func_graph_widget.dot_source == dot_string

0 commit comments

Comments
 (0)