Skip to content

Commit 875a774

Browse files
authored
Merge pull request #45 from UBC-MDS/scale-test-update
Fix tests for scale
2 parents 2846c10 + a5bb04b commit 875a774

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_eda_utils_py.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,19 +227,19 @@ def test_scaler():
227227

228228
# Test if the imput is not dataFrame
229229
with raises(TypeError):
230-
eda_utils_py.outlier_identifier("A string")
230+
eda_utils_py.scale("A string")
231231

232232
# Tests if contents of columns is not of type str
233233
with raises(TypeError):
234-
eda_utils_py.cor_map(mock_df_1, (1, 2, 3, 4))
234+
eda_utils_py.scale(mock_df_1, (1, 2, 3, 4))
235235

236236
# Tests if columns do not exist in the dataframe
237237
with raises(Exception):
238-
eda_utils_py.cor_map(mock_df_1, ['one', 'two'])
238+
eda_utils_py.scale(mock_df_1, ['one', 'two'])
239239

240240
# Tests if if not all columns in columns are numeric
241241
with raises(Exception):
242-
eda_utils_py.cor_map(mock_df_1, {'col1': "1", 'col2': "3"})
242+
eda_utils_py.scale(mock_df_1, {'col1': "1", 'col2': "3"})
243243

244244
# Tests whether data is not of type pd.Dataframe raises TypeError
245245
with raises(TypeError):

0 commit comments

Comments
 (0)