Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_push_notifs: Adjust .filter() in test_analytics_api.

Mateusz Mandera9f24b30e78da
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py
index d9ab8a0f24e..f37548ed654 100644
--- a/zerver/tests/test_push_notifications.py
+++ b/zerver/tests/test_push_notifications.py
@@ -1686,9 +1686,9 @@ class AnalyticsBouncerTest(BouncerTestCase):
# Verify the RemoteRealmAuditLog entries created.
remote_audit_logs = (
RemoteRealmAuditLog.objects.filter(
- event_type=RemoteRealmAuditLog.REMOTE_REALM_VALUE_UPDATED
+ event_type=RemoteRealmAuditLog.REMOTE_REALM_VALUE_UPDATED,
+ remote_realm=zephyr_remote_realm,
)
- .exclude(realm_id=get_realm("zulipinternal").id)
.order_by("id")
.values("event_type", "remote_id", "realm_id", "extra_data")
)