Skip to content

Commit c0e9b26

Browse files
black + pylint
1 parent 97ff646 commit c0e9b26

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

causal_testing/json_front/json_class.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ def run_json_tests(self, effects: dict, estimators: dict, f_flag: bool = False,
118118
treatment_value=test["treatment_value"],
119119
estimate_type=test["estimate_type"],
120120
)
121-
if self._execute_test_case(
122-
causal_test_case=causal_test_case, test=test, f_flag=f_flag
123-
):
121+
if self._execute_test_case(causal_test_case=causal_test_case, test=test, f_flag=f_flag):
124122
result = "failed"
125123
else:
126124
result = "passed"
@@ -152,7 +150,7 @@ def _create_abstract_test_case(self, test, mutates, effects):
152150
)
153151
return abstract_test
154152

155-
def _execute_tests(self, concrete_tests, estimators, test, f_flag):
153+
def _execute_tests(self, concrete_tests, test, f_flag):
156154
failures = 0
157155
if "formula" in test:
158156
self._append_to_file(f"Estimator formula used for test: {test['formula']}")
@@ -257,9 +255,7 @@ def _append_to_file(self, line: str, log_level: int = None):
257255
is possible to use the inbuilt logging level variables such as logging.INFO and logging.WARNING
258256
"""
259257
with open(self.output_path, "a", encoding="utf-8") as f:
260-
f.write(
261-
line + "\n"
262-
)
258+
f.write(line + "\n")
263259
if log_level:
264260
logger.log(level=log_level, msg=line)
265261

0 commit comments

Comments
 (0)