Skip to content

Commit

Permalink
fix(tests): KNN and PLSDA test update
Browse files Browse the repository at this point in the history
  • Loading branch information
f-aguzzi committed Jun 18, 2024
1 parent 6b29b45 commit 858f560
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_knn_constructor(self):
df.fuse()

# settings parameter
wrong_settings = DFDataModel(pd.DataFrame([1]), pd.DataFrame([1]), np.asarray([1]))
wrong_settings = DFDataModel(pd.DataFrame([1]), pd.DataFrame([1]), np.asarray([1]), [])
with self.assertRaises(TypeError):
KNN(wrong_settings, df.fused_data) # pass an object of the wrong class as settings

Expand Down
2 changes: 1 addition & 1 deletion tests/test_plsda.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_plsda_constructor(self):
df.fuse()

# settings parameter
wrong_settings = DFDataModel(pd.DataFrame([1]), pd.DataFrame([1]), np.asarray([1]))
wrong_settings = DFDataModel(pd.DataFrame([1]), pd.DataFrame([1]), np.asarray([1]), [])
with self.assertRaises(TypeError):
PLSDA(wrong_settings, df.fused_data) # pass an object of the wrong class as settings

Expand Down

0 comments on commit 858f560

Please sign in to comment.