Skip to content

Commit 763061b

Browse files
committed
Removed main method from coverage
1 parent e5dda00 commit 763061b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

causal_testing/specification/metamorphic_relation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def generate_metamorphic_relations(dag: CausalDAG) -> list[MetamorphicRelation]:
253253
return metamorphic_relations
254254

255255

256-
if __name__ == "__main__":
256+
if __name__ == "__main__": # pragma: no cover
257257
logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.INFO)
258258
parser = argparse.ArgumentParser(
259259
description="A script for generating metamorphic relations to test the causal relationships in a given DAG."

tests/specification_tests/test_metamorphic_relations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def test_should_not_cause_json_stub(self):
116116
"estimate_type": "coefficient",
117117
"estimator": "LinearRegressionEstimator",
118118
"expected_effect": {"Z": "NoEffect"},
119+
"formula": "Z ~ X1",
119120
"mutations": ["X1"],
120121
"name": "X1 _||_ Z",
121122
"skip": True,
@@ -139,6 +140,7 @@ def test_should_cause_json_stub(self):
139140
"estimate_type": "coefficient",
140141
"estimator": "LinearRegressionEstimator",
141142
"expected_effect": {"Z": "SomeEffect"},
143+
"formula": "Z ~ X1",
142144
"mutations": ["X1"],
143145
"name": "X1 --> Z",
144146
"skip": True,

0 commit comments

Comments
 (0)