File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
causal_testing/specification
tests/specification_tests Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ def generate_metamorphic_relations(dag: CausalDAG) -> list[MetamorphicRelation]:
253
253
return metamorphic_relations
254
254
255
255
256
- if __name__ == "__main__" :
256
+ if __name__ == "__main__" : # pragma: no cover
257
257
logging .basicConfig (format = "%(levelname)s: %(message)s" , level = logging .INFO )
258
258
parser = argparse .ArgumentParser (
259
259
description = "A script for generating metamorphic relations to test the causal relationships in a given DAG."
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ def test_should_not_cause_json_stub(self):
116
116
"estimate_type" : "coefficient" ,
117
117
"estimator" : "LinearRegressionEstimator" ,
118
118
"expected_effect" : {"Z" : "NoEffect" },
119
+ "formula" : "Z ~ X1" ,
119
120
"mutations" : ["X1" ],
120
121
"name" : "X1 _||_ Z" ,
121
122
"skip" : True ,
@@ -139,6 +140,7 @@ def test_should_cause_json_stub(self):
139
140
"estimate_type" : "coefficient" ,
140
141
"estimator" : "LinearRegressionEstimator" ,
141
142
"expected_effect" : {"Z" : "SomeEffect" },
143
+ "formula" : "Z ~ X1" ,
142
144
"mutations" : ["X1" ],
143
145
"name" : "X1 --> Z" ,
144
146
"skip" : True ,
You can’t perform that action at this time.
0 commit comments