Skip to content

Commit d71d2d3

Browse files
committed
Pytest
1 parent 347887b commit d71d2d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testing_tests/test_metamorphic_relations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_should_not_cause_logistic_json_stub(self):
7070
"""Test if the ShouldCause MR passes all metamorphic tests where the DAG perfectly represents the program
7171
and there is only a single input."""
7272
causal_dag = CausalDAG(self.dag_dot_path)
73-
causal_dag.graph.remove_nodes_from(["X2", "X3"])
73+
causal_dag.remove_nodes_from(["X2", "X3"])
7474
adj_set = list(causal_dag.direct_effect_adjustment_sets(["X1"], ["Z"])[0])
7575
should_not_cause_mr = ShouldNotCause(BaseTestCase("X1", "Z"), adj_set)
7676
self.assertEqual(
@@ -115,7 +115,7 @@ def test_should_cause_logistic_json_stub(self):
115115
"""Test if the ShouldCause MR passes all metamorphic tests where the DAG perfectly represents the program
116116
and there is only a single input."""
117117
causal_dag = CausalDAG(self.dag_dot_path)
118-
causal_dag.graph.remove_nodes_from(["X2", "X3"])
118+
causal_dag.remove_nodes_from(["X2", "X3"])
119119
adj_set = list(causal_dag.direct_effect_adjustment_sets(["X1"], ["Z"])[0])
120120
should_cause_mr = ShouldCause(BaseTestCase("X1", "Z"), adj_set)
121121
self.assertEqual(

0 commit comments

Comments
 (0)