Skip to content

Commit 96bb1b3

Browse files
committed
Fix test_hopsworks_udf
1 parent c9582e5 commit 96bb1b3

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

python/tests/test_hopswork_udf.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ def test_get_module_imports(self):
9999
]
100100

101101
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
103103

104104
assert """import pandas as pd
105105
from hsfs.transformation_statistics import TransformationStatistics
106106
def test_function():
107107
return True""" == HopsworksUdf._extract_source_code(test_function).strip()
108108

109109
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
111111

112112
with pytest.raises(FeatureStoreException) as exception:
113113
HopsworksUdf._extract_function_arguments(test_function)
@@ -118,7 +118,7 @@ def test_extract_function_arguments_no_arguments(self):
118118
)
119119

120120
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
122122

123123
function_argument = HopsworksUdf._extract_function_arguments(
124124
test_function_one_argument
@@ -129,7 +129,7 @@ def test_extract_function_arguments_one_argument(self):
129129
]
130130

131131
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 (
133133
test_function_one_argument_with_statistics,
134134
)
135135

@@ -142,7 +142,7 @@ def test_extract_function_arguments_one_argument_with_statistics(self):
142142
]
143143

144144
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 (
146146
test_function_one_argument_with_typehints,
147147
)
148148

@@ -157,7 +157,7 @@ def test_extract_function_arguments_one_argument_with_typehint(self):
157157
def test_extract_function_arguments_one_argument_with_statistics_and_typehints(
158158
self,
159159
):
160-
from test_helpers.transformation_test_helper import (
160+
from .test_helpers.transformation_test_helper import (
161161
test_function_one_argument_with_statistics_and_typehints,
162162
)
163163

@@ -170,7 +170,7 @@ def test_extract_function_arguments_one_argument_with_statistics_and_typehints(
170170
]
171171

172172
def test_extract_function_arguments_multiple_argument(self):
173-
from test_helpers.transformation_test_helper import (
173+
from .test_helpers.transformation_test_helper import (
174174
test_function_multiple_argument,
175175
)
176176

@@ -184,7 +184,7 @@ def test_extract_function_arguments_multiple_argument(self):
184184
]
185185

186186
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 (
188188
test_function_multiple_argument_with_statistics,
189189
)
190190

@@ -199,7 +199,7 @@ def test_extract_function_arguments_multiple_argument_with_statistics(self):
199199
]
200200

201201
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 (
203203
test_function_multiple_argument_with_typehints,
204204
)
205205

@@ -215,7 +215,7 @@ def test_extract_function_arguments_multiple_argument_with_typehints(self):
215215
def test_extract_function_arguments_multiple_argument_with_statistics_and_typehints(
216216
self,
217217
):
218-
from test_helpers.transformation_test_helper import (
218+
from .test_helpers.transformation_test_helper import (
219219
test_function_multiple_argument_with_statistics_and_typehints,
220220
)
221221

@@ -231,7 +231,7 @@ def test_extract_function_arguments_multiple_argument_with_statistics_and_typehi
231231
def test_extract_function_arguments_multiple_argument_with_mixed_statistics_and_typehints(
232232
self,
233233
):
234-
from test_helpers.transformation_test_helper import (
234+
from .test_helpers.transformation_test_helper import (
235235
test_function_multiple_argument_with_mixed_statistics_and_typehints,
236236
)
237237

@@ -248,7 +248,7 @@ def test_extract_function_arguments_multiple_argument_with_mixed_statistics_and_
248248
def test_extract_function_arguments_multiple_argument_all_parameter_with_spaces(
249249
self,
250250
):
251-
from test_helpers.transformation_test_helper import (
251+
from .test_helpers.transformation_test_helper import (
252252
test_function_multiple_argument_all_parameter_with_spaces,
253253
)
254254

@@ -262,7 +262,7 @@ def test_extract_function_arguments_multiple_argument_all_parameter_with_spaces(
262262
]
263263

264264
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 (
266266
test_function_multiple_argument_all_parameter_multiline,
267267
)
268268

@@ -279,7 +279,7 @@ def test_extract_function_arguments_multiple_argument_all_parameter_multiline(se
279279
def test_extract_function_arguments_multiple_argumen_all_parameter_multiline_with_comments(
280280
self,
281281
):
282-
from test_helpers.transformation_test_helper import (
282+
from .test_helpers.transformation_test_helper import (
283283
test_function_multiple_argument_all_parameter_multiline_with_comments,
284284
)
285285

@@ -294,7 +294,7 @@ def test_extract_function_arguments_multiple_argumen_all_parameter_multiline_wit
294294
]
295295

296296
def test_extract_function_arguments_statistics_invalid(self):
297-
from test_helpers.transformation_test_helper import (
297+
from .test_helpers.transformation_test_helper import (
298298
test_function_statistics_invalid,
299299
)
300300

@@ -307,7 +307,7 @@ def test_extract_function_arguments_statistics_invalid(self):
307307
)
308308

309309
def test_format_source_code(self):
310-
from test_helpers.transformation_test_helper import (
310+
from .test_helpers.transformation_test_helper import (
311311
test_function_multiple_argument_all_parameter_multiline_with_comments,
312312
)
313313

0 commit comments

Comments
 (0)