Skip to content

Commit b23a979

Browse files
committed
Skip test if networkx not installed
1 parent e9dcc27 commit b23a979

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_model_graph.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ def test_unknown_node_type(simple_model):
567567

568568

569569
def test_custom_node_formatting_networkx(simple_model):
570+
pytest.importorskip("networkx")
570571
node_formatters = {
571572
"Free Random Variable": lambda var: {
572573
"label": var.name,

0 commit comments

Comments
 (0)