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:
Tim Abbott 2020-04-18 16:15:20 -07:00
parent 43241250b6
commit 6dc12295db
1 changed files with 1 additions and 1 deletions

View File

@ -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),