Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_signup: Fix copy-paste mistakes.
Anders Kaseorgf4b3c15fe8a7
diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.pyindex 370db16bb94..ae9c772560f 100644--- a/zerver/tests/test_signup.py+++ b/zerver/tests/test_signup.py@@ -2667,17 +2667,14 @@ class EmailUnsubscribeTests(ZulipTestCase):user_profile = self.example_user("hamlet")self.assertTrue(user_profile.enable_marketing_emails)- # Simulate unsubscribing from digest e-mails.+ # Simulate unsubscribing from marketing e-mails.unsubscribe_link = one_click_unsubscribe_link(user_profile, "marketing")result = self.client_get(urllib.parse.urlparse(unsubscribe_link).path)-- # The setting is toggled off, and scheduled jobs have been removed.self.assertEqual(result.status_code, 200)# Circumvent user_profile caching.user_profile.refresh_from_db()self.assertFalse(user_profile.enable_marketing_emails)- self.assertEqual(0, ScheduledEmail.objects.filter(users=user_profile).count())class RealmCreationTest(ZulipTestCase):