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_home: Fix user_activity queue event format in a test.

Mateusz Mandera2983a7e79971
diff --git a/zerver/tests/test_home.py b/zerver/tests/test_home.py
index 5a98a2ad847..a454bfaa8ea 100644
--- a/zerver/tests/test_home.py
+++ b/zerver/tests/test_home.py
@@ -887,7 +887,7 @@ class HomeTest(ZulipTestCase):
activity_time = calendar.timegm(now.timetuple())
user_activity_event = {
"user_profile_id": hamlet.id,
- "client": "test-client",
+ "client_id": 1,
"query": "update_message_flags",
"time": activity_time,
}
@@ -896,7 +896,7 @@ class HomeTest(ZulipTestCase):
activity_time_2 = calendar.timegm(yesterday.timetuple())
user_activity_event_2 = {
"user_profile_id": hamlet.id,
- "client": "test-client-2",
+ "client_id": 2,
"query": "update_message_flags",
"time": activity_time_2,
}