top-up: 22 source files 128-600 KB
Some checks failed
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 2s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Code scanning / CodeQL (push) Failing after 4s
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 4s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 3s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 3s
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 2s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled

This commit is contained in:
upstream-mirror
2026-09-16 00:27:16 +05:00
parent 64898b2c79
commit 369b4d3063

View File

@@ -464,13 +464,13 @@ class MessageMoveTopicTest(ZulipTestCase):
for call_args in mock_send_event_on_commit.call_args_list: for call_args in mock_send_event_on_commit.call_args_list:
(_arg_realm, arg_event, arg_notified_users) = call_args[0] (_arg_realm, arg_event, arg_notified_users) = call_args[0]
[notified_user_id] = arg_notified_users [notified_user_id] = arg_notified_users
if arg_event["type"] == "user_topic": if arg_event.type == "user_topic":
self.assertEqual(arg_event["stream_id"], stream.id) self.assertEqual(arg_event.stream_id, stream.id)
user_topic_events[notified_user_id].append( user_topic_events[notified_user_id].append(
(arg_event["topic_name"], arg_event["visibility_policy"]) (arg_event.topic_name, arg_event.visibility_policy)
) )
elif arg_event["type"] == "muted_topics": elif arg_event.type == "muted_topics":
muted_topics_events[notified_user_id].append(arg_event["muted_topics"]) muted_topics_events[notified_user_id].append(arg_event.muted_topics)
self.assertEqual( self.assertEqual(
user_topic_events[hamlet.id], user_topic_events[hamlet.id],
[ [
@@ -597,9 +597,9 @@ class MessageMoveTopicTest(ZulipTestCase):
users_notified_via_user_topic_event: list[int] = [] users_notified_via_user_topic_event: list[int] = []
for call_args in mock_send_event_on_commit.call_args_list: for call_args in mock_send_event_on_commit.call_args_list:
(_arg_realm, arg_event, arg_notified_users) = call_args[0] (_arg_realm, arg_event, arg_notified_users) = call_args[0]
if arg_event["type"] == "user_topic": if arg_event.type == "user_topic":
users_notified_via_user_topic_event.append(*arg_notified_users) users_notified_via_user_topic_event.append(*arg_notified_users)
elif arg_event["type"] == "muted_topics": elif arg_event.type == "muted_topics":
users_notified_via_muted_topics_event.append(*arg_notified_users) users_notified_via_muted_topics_event.append(*arg_notified_users)
self.assertEqual( self.assertEqual(
sorted(users_notified_via_muted_topics_event), sorted(users_notified_via_muted_topics_event),
@@ -859,9 +859,9 @@ class MessageMoveTopicTest(ZulipTestCase):
users_notified_via_user_topic_event: list[int] = [] users_notified_via_user_topic_event: list[int] = []
for call_args in mock_send_event_on_commit.call_args_list: for call_args in mock_send_event_on_commit.call_args_list:
(_arg_realm, arg_event, arg_notified_users) = call_args[0] (_arg_realm, arg_event, arg_notified_users) = call_args[0]
if arg_event["type"] == "user_topic": if arg_event.type == "user_topic":
users_notified_via_user_topic_event.append(*arg_notified_users) users_notified_via_user_topic_event.append(*arg_notified_users)
elif arg_event["type"] == "muted_topics": elif arg_event.type == "muted_topics":
users_notified_via_muted_topics_event.append(*arg_notified_users) users_notified_via_muted_topics_event.append(*arg_notified_users)
self.assertEqual( self.assertEqual(
sorted(users_notified_via_muted_topics_event), sorted(users_notified_via_muted_topics_event),