Skip to content

Commit 37d3c66

Browse files
committed
Fixed output formatting
1 parent 2491359 commit 37d3c66

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

causal_testing/json_front/json_class.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,12 @@ def run_json_tests(self, effects: dict, estimators: dict, f_flag: bool = False,
135135
self.scenario.variables[v] for v in test.get("effect_modifiers", [])
136136
},
137137
)
138-
result = self._execute_test_case(
139-
causal_test_case=causal_test_case, test=test, f_flag=f_flag
140-
)
141-
result = ("\n ").join(str(result).split("\n"))
142-
msg = (
143-
f"Executing test: {test['name']} \n"
144-
+ f" {causal_test_case} \n"
145-
+ f" {result[1]}==============\n"
138+
msg = f"Executing test: {test['name']} \n" + f" {causal_test_case} \n"
139+
result = self._execute_test_case(causal_test_case=causal_test_case, test=test, f_flag=f_flag)
140+
msg += (
141+
" "
142+
+ ("\n ").join(str(result[1]).split("\n"))
143+
+ f"==============\n"
146144
+ f" Result: {'FAILED' if result[0] else 'Passed'}"
147145
)
148146
else:

0 commit comments

Comments
 (0)