Skip to content

Commit e6900b5

Browse files
reformat + remove empty test
1 parent becf6b3 commit e6900b5

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

tests/json_front_tests/test_json_class.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
class TestJsonClass(unittest.TestCase):
15-
""" Test the CausalTestEngine workflow using observational data.
15+
"""Test the CausalTestEngine workflow using observational data.
1616
1717
The causal test engine (CTE) is the main workflow for the causal testing framework. The CTE takes a causal test case
1818
and a causal specification and computes the causal effect of the intervention on the outcome of interest.
@@ -73,9 +73,6 @@ def test_setup_causal_specification(self):
7373
self.json_class.setup()
7474
self.assertIsInstance(self.json_class.causal_specification, CausalSpecification)
7575

76-
def test_concrete_tests_generated(self):
77-
pass
78-
7976
def tearDown(self) -> None:
8077
remove_temp_dir_if_existent()
8178

@@ -87,8 +84,16 @@ def populate_example(*args, **kwargs):
8784
def setup_json_file(json_path):
8885
json_test = {
8986
"tests": [
90-
{"name": "test1", "mutations": {}, "estimator": None, "estimate_type": None, "effect_modifiers": [],
91-
"expectedEffect": {}, "skip": False}]
87+
{
88+
"name": "test1",
89+
"mutations": {},
90+
"estimator": None,
91+
"estimate_type": None,
92+
"effect_modifiers": [],
93+
"expectedEffect": {},
94+
"skip": False,
95+
}
96+
]
9297
}
9398
json_object = json.dumps(json_test)
9499
with open(json_path, "w") as f:
@@ -97,7 +102,7 @@ def setup_json_file(json_path):
97102

98103

99104
def setup_data_file(data_path):
100-
header = ['test_input', 'test_output']
105+
header = ["test_input", "test_output"]
101106
data = [1, 2]
102107
with open(data_path, "w") as f:
103108
writer = csv.writer(f)
@@ -106,9 +111,7 @@ def setup_data_file(data_path):
106111

107112

108113
def setup_dag_file(dag_path):
109-
dag_dot = (
110-
"digraph G {A->B}"
111-
)
114+
dag_dot = "digraph G {A->B}"
112115
with open(dag_path, "w") as f:
113116
f.write(dag_dot)
114117
f.close()

0 commit comments

Comments
 (0)