mirror of https://github.com/zulip/zulip.git
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:
parent
43241250b6
commit
6dc12295db
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue