@@ -135,8 +135,10 @@ def run_json_tests(self, effects: dict, estimators: dict, f_flag: bool = False,
135
135
self .scenario .variables [v ] for v in test .get ("effect_modifiers" , [])
136
136
},
137
137
)
138
- failed , result = self ._execute_test_case (causal_test_case = causal_test_case , test = test , f_flag = f_flag )
139
- result = ('\n ' ).join (str (result ).split ("\n " ))
138
+ failed , 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 " ))
140
142
msg = (
141
143
f"Executing test: { test ['name' ]} \n "
142
144
+ f" { causal_test_case } \n "
@@ -217,7 +219,9 @@ def _populate_metas(self):
217
219
for meta in self .scenario .variables_of_type (Meta ):
218
220
meta .populate (self .data )
219
221
220
- def _execute_test_case (self , causal_test_case : CausalTestCase , test : Iterable [Mapping ], f_flag : bool ) -> (bool , CausalTestResult ):
222
+ def _execute_test_case (
223
+ self , causal_test_case : CausalTestCase , test : Iterable [Mapping ], f_flag : bool
224
+ ) -> (bool , CausalTestResult ):
221
225
"""Executes a singular test case, prints the results and returns the test case result
222
226
:param causal_test_case: The concrete test case to be executed
223
227
:param test: Single JSON test definition stored in a mapping (dict)
0 commit comments