mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
test_alert_words: Fix broken accidentally working test.
This test was passing a string, not an Iterable[str], and effectively a quirk in the remove_alert_words implementation happened to result in processing each character in the string working.
This commit is contained in:
@@ -67,7 +67,7 @@ class AlertWordTests(ZulipTestCase):
|
||||
add_user_alert_words(user, self.interesting_alert_word_list)
|
||||
|
||||
for alert_word in self.interesting_alert_word_list:
|
||||
remove_user_alert_words(user, alert_word)
|
||||
remove_user_alert_words(user, [alert_word])
|
||||
expected_remaining_alerts.remove(alert_word)
|
||||
actual_remaining_alerts = user_alert_words(user)
|
||||
self.assertEqual(set(actual_remaining_alerts),
|
||||
|
||||
Reference in New Issue
Block a user