test_home: Fix user_activity queue event format in a test.

Current production code uses client_id in the event dict and this test
should be updated to reflect that. Old format event can still be
consumed by the worker, but that is already tested by
WorkerTest.test_UserActivityWorker.
This commit is contained in:
Mateusz Mandera
2021-04-16 19:41:37 +02:00
committed by Tim Abbott
parent 4b3ac8c5ed
commit 2983a7e799

View File

@@ -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,
}