mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
notifications_data: Rename id -> user_id.
We also make this a mandatory named argument for our test helper for clarity.
This commit is contained in:
@@ -1323,9 +1323,11 @@ Output:
|
||||
|
||||
self.assert_length(lst, expected_num_events)
|
||||
|
||||
def create_user_notifications_data_object(self, **kwargs: Any) -> UserMessageNotificationsData:
|
||||
def create_user_notifications_data_object(
|
||||
self, *, user_id: int, **kwargs: Any
|
||||
) -> UserMessageNotificationsData:
|
||||
return UserMessageNotificationsData(
|
||||
id=kwargs.get("id", self.example_user("hamlet").id),
|
||||
user_id=user_id,
|
||||
flags=kwargs.get("flags", []),
|
||||
mentioned=kwargs.get("mentioned", False),
|
||||
online_push_enabled=kwargs.get("online_push_enabled", False),
|
||||
|
||||
Reference in New Issue
Block a user