@@ -118,9 +118,7 @@ def run_json_tests(self, effects: dict, estimators: dict, f_flag: bool = False,
118
118
treatment_value = test ["treatment_value" ],
119
119
estimate_type = test ["estimate_type" ],
120
120
)
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 ):
124
122
result = "failed"
125
123
else :
126
124
result = "passed"
@@ -152,7 +150,7 @@ def _create_abstract_test_case(self, test, mutates, effects):
152
150
)
153
151
return abstract_test
154
152
155
- def _execute_tests (self , concrete_tests , estimators , test , f_flag ):
153
+ def _execute_tests (self , concrete_tests , test , f_flag ):
156
154
failures = 0
157
155
if "formula" in test :
158
156
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):
257
255
is possible to use the inbuilt logging level variables such as logging.INFO and logging.WARNING
258
256
"""
259
257
with open (self .output_path , "a" , encoding = "utf-8" ) as f :
260
- f .write (
261
- line + "\n "
262
- )
258
+ f .write (line + "\n " )
263
259
if log_level :
264
260
logger .log (level = log_level , msg = line )
265
261
0 commit comments