@@ -99,15 +99,15 @@ def test_get_module_imports(self):
99
99
]
100
100
101
101
def test_extract_source_code (self ):
102
- from test_helpers .transformation_test_helper import test_function
102
+ from . test_helpers .transformation_test_helper import test_function
103
103
104
104
assert """import pandas as pd
105
105
from hsfs.transformation_statistics import TransformationStatistics
106
106
def test_function():
107
107
return True""" == HopsworksUdf ._extract_source_code (test_function ).strip ()
108
108
109
109
def test_extract_function_arguments_no_arguments (self ):
110
- from test_helpers .transformation_test_helper import test_function
110
+ from . test_helpers .transformation_test_helper import test_function
111
111
112
112
with pytest .raises (FeatureStoreException ) as exception :
113
113
HopsworksUdf ._extract_function_arguments (test_function )
@@ -118,7 +118,7 @@ def test_extract_function_arguments_no_arguments(self):
118
118
)
119
119
120
120
def test_extract_function_arguments_one_argument (self ):
121
- from test_helpers .transformation_test_helper import test_function_one_argument
121
+ from . test_helpers .transformation_test_helper import test_function_one_argument
122
122
123
123
function_argument = HopsworksUdf ._extract_function_arguments (
124
124
test_function_one_argument
@@ -129,7 +129,7 @@ def test_extract_function_arguments_one_argument(self):
129
129
]
130
130
131
131
def test_extract_function_arguments_one_argument_with_statistics (self ):
132
- from test_helpers .transformation_test_helper import (
132
+ from . test_helpers .transformation_test_helper import (
133
133
test_function_one_argument_with_statistics ,
134
134
)
135
135
@@ -142,7 +142,7 @@ def test_extract_function_arguments_one_argument_with_statistics(self):
142
142
]
143
143
144
144
def test_extract_function_arguments_one_argument_with_typehint (self ):
145
- from test_helpers .transformation_test_helper import (
145
+ from . test_helpers .transformation_test_helper import (
146
146
test_function_one_argument_with_typehints ,
147
147
)
148
148
@@ -157,7 +157,7 @@ def test_extract_function_arguments_one_argument_with_typehint(self):
157
157
def test_extract_function_arguments_one_argument_with_statistics_and_typehints (
158
158
self ,
159
159
):
160
- from test_helpers .transformation_test_helper import (
160
+ from . test_helpers .transformation_test_helper import (
161
161
test_function_one_argument_with_statistics_and_typehints ,
162
162
)
163
163
@@ -170,7 +170,7 @@ def test_extract_function_arguments_one_argument_with_statistics_and_typehints(
170
170
]
171
171
172
172
def test_extract_function_arguments_multiple_argument (self ):
173
- from test_helpers .transformation_test_helper import (
173
+ from . test_helpers .transformation_test_helper import (
174
174
test_function_multiple_argument ,
175
175
)
176
176
@@ -184,7 +184,7 @@ def test_extract_function_arguments_multiple_argument(self):
184
184
]
185
185
186
186
def test_extract_function_arguments_multiple_argument_with_statistics (self ):
187
- from test_helpers .transformation_test_helper import (
187
+ from . test_helpers .transformation_test_helper import (
188
188
test_function_multiple_argument_with_statistics ,
189
189
)
190
190
@@ -199,7 +199,7 @@ def test_extract_function_arguments_multiple_argument_with_statistics(self):
199
199
]
200
200
201
201
def test_extract_function_arguments_multiple_argument_with_typehints (self ):
202
- from test_helpers .transformation_test_helper import (
202
+ from . test_helpers .transformation_test_helper import (
203
203
test_function_multiple_argument_with_typehints ,
204
204
)
205
205
@@ -215,7 +215,7 @@ def test_extract_function_arguments_multiple_argument_with_typehints(self):
215
215
def test_extract_function_arguments_multiple_argument_with_statistics_and_typehints (
216
216
self ,
217
217
):
218
- from test_helpers .transformation_test_helper import (
218
+ from . test_helpers .transformation_test_helper import (
219
219
test_function_multiple_argument_with_statistics_and_typehints ,
220
220
)
221
221
@@ -231,7 +231,7 @@ def test_extract_function_arguments_multiple_argument_with_statistics_and_typehi
231
231
def test_extract_function_arguments_multiple_argument_with_mixed_statistics_and_typehints (
232
232
self ,
233
233
):
234
- from test_helpers .transformation_test_helper import (
234
+ from . test_helpers .transformation_test_helper import (
235
235
test_function_multiple_argument_with_mixed_statistics_and_typehints ,
236
236
)
237
237
@@ -248,7 +248,7 @@ def test_extract_function_arguments_multiple_argument_with_mixed_statistics_and_
248
248
def test_extract_function_arguments_multiple_argument_all_parameter_with_spaces (
249
249
self ,
250
250
):
251
- from test_helpers .transformation_test_helper import (
251
+ from . test_helpers .transformation_test_helper import (
252
252
test_function_multiple_argument_all_parameter_with_spaces ,
253
253
)
254
254
@@ -262,7 +262,7 @@ def test_extract_function_arguments_multiple_argument_all_parameter_with_spaces(
262
262
]
263
263
264
264
def test_extract_function_arguments_multiple_argument_all_parameter_multiline (self ):
265
- from test_helpers .transformation_test_helper import (
265
+ from . test_helpers .transformation_test_helper import (
266
266
test_function_multiple_argument_all_parameter_multiline ,
267
267
)
268
268
@@ -279,7 +279,7 @@ def test_extract_function_arguments_multiple_argument_all_parameter_multiline(se
279
279
def test_extract_function_arguments_multiple_argumen_all_parameter_multiline_with_comments (
280
280
self ,
281
281
):
282
- from test_helpers .transformation_test_helper import (
282
+ from . test_helpers .transformation_test_helper import (
283
283
test_function_multiple_argument_all_parameter_multiline_with_comments ,
284
284
)
285
285
@@ -294,7 +294,7 @@ def test_extract_function_arguments_multiple_argumen_all_parameter_multiline_wit
294
294
]
295
295
296
296
def test_extract_function_arguments_statistics_invalid (self ):
297
- from test_helpers .transformation_test_helper import (
297
+ from . test_helpers .transformation_test_helper import (
298
298
test_function_statistics_invalid ,
299
299
)
300
300
@@ -307,7 +307,7 @@ def test_extract_function_arguments_statistics_invalid(self):
307
307
)
308
308
309
309
def test_format_source_code (self ):
310
- from test_helpers .transformation_test_helper import (
310
+ from . test_helpers .transformation_test_helper import (
311
311
test_function_multiple_argument_all_parameter_multiline_with_comments ,
312
312
)
313
313
0 commit comments