Skip to content

Commit 2786fdc

Browse files
committed
Fixed metamorphic relation
1 parent 3310bbe commit 2786fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causal_testing/testing/metamorphic_relation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def generate_metamorphic_relations(
226226
tests = [
227227
relation.to_json_stub(skip=False)
228228
for relation in relations
229-
if len(list(causal_dag.graph.predecessors(relation.output_var))) > 0
229+
if len(list(causal_dag.graph.predecessors(relation.base_test_case.outcome_variable))) > 0
230230
]
231231

232232
logger.info(f"Generated {len(tests)} tests. Saving to {args.output_path}.")

0 commit comments

Comments
 (0)