Skip to content

Commit 7c0f0f2

Browse files
committed
Removed abstract causal test case + pylint
1 parent 31a70b1 commit 7c0f0f2

File tree

5 files changed

+2
-332
lines changed

5 files changed

+2
-332
lines changed

causal_testing/generation/__init__.py

Whitespace-only changes.

causal_testing/generation/abstract_causal_test_case.py

Lines changed: 0 additions & 279 deletions
This file was deleted.

causal_testing/generation/enum_gen.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

causal_testing/json_front/json_class.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,10 @@ def setup(self, scenario: Scenario, ignore_cycles=False):
8787
)
8888
self._populate_metas()
8989

90-
def run_json_tests(self, effects: dict, estimators: dict, f_flag: bool = False, mutates: dict = None):
90+
def run_json_tests(self, effects: dict, estimators: dict, f_flag: bool = False):
9191
"""Runs and evaluates each test case specified in the JSON input
9292
9393
:param effects: Dictionary mapping effect class instances to string representations.
94-
:param mutates: Dictionary mapping mutation functions to string representations.
9594
:param estimators: Dictionary mapping estimator classes to string representations.
9695
:param f_flag: Failure flag that if True the script will stop executing when a test fails.
9796
"""

tests/testing_tests/test_causal_test_adequacy.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,9 @@ def test_data_adequacy_cateogorical(self):
8383
}
8484
self.json_class.test_plan = example_test
8585
effects = {"NoEffect": NoEffect()}
86-
mutates = {
87-
"Increase": lambda x: self.json_class.scenario.treatment_variables[x].z3
88-
> self.json_class.scenario.variables[x].z3
89-
}
9086
estimators = {"LinearRegressionEstimator": LinearRegressionEstimator}
9187

92-
test_results = self.json_class.run_json_tests(
93-
effects=effects, estimators=estimators, f_flag=False, mutates=mutates
94-
)
88+
test_results = self.json_class.run_json_tests(effects=effects, estimators=estimators, f_flag=False)
9589
self.assertEqual(
9690
test_results[0]["result"].adequacy.to_dict(),
9791
{"kurtosis": {"test_input_no_dist[T.b]": 0.0}, "bootstrap_size": 100, "passing": 100, "successful": 100},

0 commit comments

Comments
 (0)