Skip to content

Commit 803f652

Browse files
author
Joeperdefloep
committed
improved test xarray-contrib#178
1 parent 2173b87 commit 803f652

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

xsimlab/tests/test_model.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -498,16 +498,12 @@ class C:
498498
class D:
499499
pass
500500

501-
@xs.process
502-
class E:
503-
pass
504-
505501
model = xs.Model(
506-
{"a": A, "b": B, "c": C, "d": D, "e": E},
507-
custom_dependencies={"d": "c", "c": "b", "b": {"a", "e"}},
502+
{"a": A, "b": B, "c": C, "d": D},
503+
custom_dependencies={"d": "c", "c": "b", "b": "a"},
508504
)
509505
model = model.drop_processes(["b", "c"])
510-
assert set(model.dependent_processes["d"]) == {"a", "e"}
506+
assert model.dependent_processes["d"] == ["a"]
511507

512508
def test_visualize(self, model):
513509
pytest.importorskip("graphviz")

0 commit comments

Comments
 (0)