Skip to content

Commit

Permalink
fix: replace assertListEqual with assertTrue for sets in the spam det…
Browse files Browse the repository at this point in the history
…ection testcases
  • Loading branch information
Aiko committed Nov 28, 2023
1 parent b99c8b0 commit ad9a8ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions django/curator/tests/test_spam.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def test_get_untrained_df__dataset_loaded(self):
self.assertTrue(
set(self.processor.column_names).issubset(set(df.columns.unique()))
)
self.assertListEqual(user_ids, list(df["user_id"].values))

# self.assertListEqual(user_ids, list(df["user_id"].values))
self.assertTrue(set(user_ids) == set(list(df["user_id"].values)))
self.delete_labels(user_ids)

def test_get_untrained_df__labels_updated(self):
Expand All @@ -147,8 +147,8 @@ def test_get_untrained_df__labels_updated(self):
self.assertTrue(
set(self.processor.column_names).issubset(set(df.columns.unique()))
)
self.assertListEqual(existing_users, list(df["user_id"].values))

# self.assertListEqual(existing_users, list(df["user_id"].values))
self.assertTrue(set(existing_users) == set(list(df["user_id"].values)))
self.delete_labels(existing_users)

def test_get_untrained_df__no_labels_updated(self):
Expand Down

0 comments on commit ad9a8ac

Please sign in to comment.