Skip to content

Commit

Permalink
improved test xarray-contrib#178
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeperdefloep committed Apr 6, 2021
1 parent 2173b87 commit 803f652
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions xsimlab/tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,16 +498,12 @@ class C:
class D:
pass

@xs.process
class E:
pass

model = xs.Model(
{"a": A, "b": B, "c": C, "d": D, "e": E},
custom_dependencies={"d": "c", "c": "b", "b": {"a", "e"}},
{"a": A, "b": B, "c": C, "d": D},
custom_dependencies={"d": "c", "c": "b", "b": "a"},
)
model = model.drop_processes(["b", "c"])
assert set(model.dependent_processes["d"]) == {"a", "e"}
assert model.dependent_processes["d"] == ["a"]

def test_visualize(self, model):
pytest.importorskip("graphviz")
Expand Down

0 comments on commit 803f652

Please sign in to comment.