Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_events: Update code to test for only allowed system groups.
Sahil Batrac8b8b836fdfa
diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.pyindex 9a917495719..7cfc78123a0 100644--- a/zerver/tests/test_events.py+++ b/zerver/tests/test_events.py@@ -3511,6 +3511,30 @@ class RealmPropertyActionTest(BaseAction):if user_group.name == default_group_name:continue+ if (+ not setting_permission_configuration.allow_internet_group+ and user_group.name == SystemGroups.EVERYONE_ON_INTERNET+ ):+ continue++ if (+ not setting_permission_configuration.allow_everyone_group+ and user_group.name == SystemGroups.EVERYONE+ ):+ continue++ if (+ not setting_permission_configuration.allow_owners_group+ and user_group.name == SystemGroups.OWNERS+ ):+ continue++ if (+ not setting_permission_configuration.allow_nobody_group+ and user_group.name == SystemGroups.NOBODY+ ):+ continue+now = timezone_now()state_change_expected = Truenum_events = 1