@@ -111,13 +111,13 @@ def test_execute_concrete_test(self):
111
111
"skip" : False ,
112
112
}
113
113
estimators = {"LinearRegressionEstimator" : LinearRegressionEstimator }
114
- abstract_test_case = self .json_class ._create_abstract_test_case (example_test , [ mutates [ v ]( k ) for k , v in example_test [ "mutations" ]. items ()] , effects )
115
- concrete_tests = abstract_test_case .generate_concrete_tests (1 , 0.5 )
114
+ abstract_test_case = self .json_class ._create_abstract_test_case (example_test , mutates , effects )
115
+ concrete_tests , dummy = abstract_test_case .generate_concrete_tests (5 , 0.5 )
116
116
self .json_class ._execute_tests (concrete_tests , estimators , example_test , False )
117
117
118
118
def tearDown (self ) -> None :
119
- remove_temp_dir_if_existent ()
120
-
119
+ # remove_temp_dir_if_existent()
120
+ pass
121
121
122
122
def populate_example (* args , ** kwargs ):
123
123
pass
@@ -144,16 +144,15 @@ def setup_json_file(json_path):
144
144
145
145
146
146
def setup_data_file (data_path ):
147
- header = ["test_input" , "test_output" ]
148
- data = [1 , 2 ]
149
- with open (data_path , "w" ) as f :
147
+ header = ["index" , " test_input" , "test_output" ]
148
+ data = [0 , 1 , 2 ]
149
+ with open (data_path , "w" , newline = '' ) as f :
150
150
writer = csv .writer (f )
151
151
writer .writerow (header )
152
152
writer .writerow (data )
153
-
154
-
153
+ """digraph G { A -> B; B -> C; D -> A; D -> C}"""
155
154
def setup_dag_file (dag_path ):
156
- dag_dot = "digraph G {A->B} "
155
+ dag_dot = """ digraph G { test_input -> temp; temp -> test_output; temp2 -> test_input; temp2 -> test_output}"" "
157
156
with open (dag_path , "w" ) as f :
158
157
f .write (dag_dot )
159
158
f .close ()
0 commit comments