Skip to content

Commit 346ed99

Browse files
committed
Black
1 parent 43a982b commit 346ed99

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

causal_testing/json_front/json_class.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ 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-
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"))
140142
msg = (
141143
f"Executing test: {test['name']} \n"
142144
+ f" {causal_test_case} \n"
@@ -217,7 +219,9 @@ def _populate_metas(self):
217219
for meta in self.scenario.variables_of_type(Meta):
218220
meta.populate(self.data)
219221

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):
221225
"""Executes a singular test case, prints the results and returns the test case result
222226
:param causal_test_case: The concrete test case to be executed
223227
:param test: Single JSON test definition stored in a mapping (dict)

0 commit comments

Comments
 (0)