12
12
13
13
14
14
class TestJsonClass (unittest .TestCase ):
15
- """ Test the CausalTestEngine workflow using observational data.
15
+ """Test the CausalTestEngine workflow using observational data.
16
16
17
17
The causal test engine (CTE) is the main workflow for the causal testing framework. The CTE takes a causal test case
18
18
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):
73
73
self .json_class .setup ()
74
74
self .assertIsInstance (self .json_class .causal_specification , CausalSpecification )
75
75
76
- def test_concrete_tests_generated (self ):
77
- pass
78
-
79
76
def tearDown (self ) -> None :
80
77
remove_temp_dir_if_existent ()
81
78
@@ -87,8 +84,16 @@ def populate_example(*args, **kwargs):
87
84
def setup_json_file (json_path ):
88
85
json_test = {
89
86
"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
+ ]
92
97
}
93
98
json_object = json .dumps (json_test )
94
99
with open (json_path , "w" ) as f :
@@ -97,7 +102,7 @@ def setup_json_file(json_path):
97
102
98
103
99
104
def setup_data_file (data_path ):
100
- header = [' test_input' , ' test_output' ]
105
+ header = [" test_input" , " test_output" ]
101
106
data = [1 , 2 ]
102
107
with open (data_path , "w" ) as f :
103
108
writer = csv .writer (f )
@@ -106,9 +111,7 @@ def setup_data_file(data_path):
106
111
107
112
108
113
def setup_dag_file (dag_path ):
109
- dag_dot = (
110
- "digraph G {A->B}"
111
- )
114
+ dag_dot = "digraph G {A->B}"
112
115
with open (dag_path , "w" ) as f :
113
116
f .write (dag_dot )
114
117
f .close ()
0 commit comments