Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tests: Fix how found zulip extra context in test helper.
Lauryn Menard82d71aba7b1b
diff --git a/zerver/lib/test_classes.py b/zerver/lib/test_classes.pyindex e8255840aff..c08feba00b4 100644--- a/zerver/lib/test_classes.py+++ b/zerver/lib/test_classes.py@@ -922,7 +922,7 @@ Output:"source_realm_id": source_realm_id,"is_demo_organization": is_demo_organization,"how_realm_creator_found_zulip": "other",- "how_realm_creator_found_zulip_extra_context": "I found it on the internet.",+ "how_realm_creator_found_zulip_other_text": "I found it on the internet.",}if enable_marketing_emails is not None:payload["enable_marketing_emails"] = enable_marketing_emailsdiff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.pyindex f0741234202..06adf28c8e1 100644--- a/zerver/tests/test_signup.py+++ b/zerver/tests/test_signup.py@@ -1471,6 +1471,15 @@ class RealmCreationTest(ZulipTestCase):)self.assertEqual(realm_creation_audit_log.acting_user, user)self.assertEqual(realm_creation_audit_log.event_time, realm.date_created)+ audit_log_extra_data = realm_creation_audit_log.extra_data+ self.assertEqual(+ audit_log_extra_data["how_realm_creator_found_zulip"],+ RealmAuditLog.HOW_REALM_CREATOR_FOUND_ZULIP_OPTIONS["other"],+ )+ self.assertEqual(+ audit_log_extra_data["how_realm_creator_found_zulip_extra_context"],+ "I found it on the internet.",+ )# Piggyback a little check for how we handle# empty string_ids.