arpit551
a2428017e9
audit_log: Log RealmAuditLog in do_set_realm_authentication_methods.
...
Log RealmAuditLog in do_set_realm_authentication_methods and added
tests for it.
2020-07-06 17:38:20 -07:00
arpit551
ba92666dbd
audit_log: Log RealmAuditLog in do_set_realm_property.
...
Log RealmAuditLog in do_set_realm_property and do_remove_realm_domain.
Tests for the changes are written in test_events because it will save
duplicate code for test_change_realm_property.
2020-07-06 17:38:19 -07:00
arpit551
6af337c07e
audit_log: Log RealmAuditLog when stream is deactivated.
2020-07-06 17:32:11 -07:00
arpit551
e0c9b0fdff
audit_log: Log RealmAuditLog when Stream is created.
...
Added new Event Type in AbstractRealmAuditLog STREAM_CREATED.
Since we finally create streams in create_stream_if_needed function
in zerver/lib/streams.py so logged realm_audit there.
Passed acting_user when create_stream_if_needed or ensure_stream
function is called.
Added tests in test_audit_log.
2020-07-06 17:32:11 -07:00
arpit551
8807cddc90
audit_log: Correctly add acting_user in bulk_remove_subscriptions.
...
Earlier we were not adding acting_user while creating RealmAuditLog
objects in bulk_remove_subscriptions. Improved tests_subscriptions
to check it.
2020-07-06 17:32:11 -07:00
arpit551
87aaa84b42
audit_log: Log acting_user in do_change_user_role.
2020-07-06 17:32:11 -07:00
arpit551
01f12b9fc2
audit_log: Log acting_user in user creation and user activation.
2020-07-06 17:32:09 -07:00
arpit551
653928bdfe
audit_log: Log acting_user in do_change_avatar_fields.
2020-07-06 17:24:18 -07:00
arpit551
2279fef316
audit_log: Log acting_user in do_change_logo_source.
2020-07-06 17:24:18 -07:00
arpit551
19a8841a9e
audit_log: Log acting_user in do_scrub_realm.
2020-07-06 17:24:18 -07:00
Mohit Gupta
98cff4ecbf
tests: Move SoftDeactivationMessageTest to test_soft_deactivation.py.
...
This commit moves out the SoftDeactivationMessageTest out of
test_messages.py (which at the moment have mixed category of tests) into
a more logical file, test_soft_deactivation.py.
2020-07-06 16:36:36 -07:00
Mohit Gupta
146b21a34a
tests: Move display_recipient fetching test to test_message_dict.py.
...
This commit moves TestMessageForIdsDisplayRecipientFetching class which
have tests regarding display_recipient filled in by MessageDict to
test_message_dict.py.
2020-07-06 16:36:36 -07:00
Mohit Gupta
b21f59e2f3
tests: Move MessageHydrationTest to test_message_dict.py.
...
MessageHydrationTest tests hydration done by MessageDict, so moving it
out of test_messages.py to test_message_dict.py.
2020-07-06 16:36:36 -07:00
Mohit Gupta
eee5318327
tests: Move InternalPrepTest to test_message_send.py.
...
This commit moves InternalPrepTest test class to test_message_send.py
because it tests internal_send_* and internal_prep_* functions which are
used for internal message sending in zulip.
2020-07-06 16:36:36 -07:00
Mohit Gupta
fb08f27d0e
tests: Move ExtractTest class to test_message_send.py.
...
This commit moves ExtractTest class to test_message_send.py as they
test input parsing extract_* functions used in message sending enpoints.
2020-07-06 16:36:36 -07:00
Mohit Gupta
f7063f5ea0
tests: Extract out test_message_dict.py for MessageDict tests.
2020-07-06 16:36:36 -07:00
Mohit Gupta
e927ff19ce
tests: Move Private Message sending tests to test_message_send.py.
...
This commit moves few tests related to testing proper sending of private
messages from PrivateMessagesTest class in test_messages.py to a new class
in test_message_send.py.
2020-07-06 16:36:36 -07:00
Mohit Gupta
c1e027fbe5
tests: Move StreamMessagesTest to test_message_send.py.
...
StreamMessagesTest test stuff after message is sent to a stream, so
moving it out from test_messages.py to test_message_send.py.
2020-07-06 16:36:36 -07:00
Mohit Gupta
becd4e7367
tests: Move ScheduledMessageTest to test_message_send.py.
...
This commit moves ScheduledMessageTest that tests sending scheduled
messages from test_messages.py to test_message_send.py.
2020-07-06 16:36:36 -07:00
Mohit Gupta
17fac94ce4
tests: Move test_create_mirror_user_despite_race to test_mirror_users.py.
...
The commit moves, test_create_mirror_user_despite_race which is not related
to message sending from MessagePOSTTest class in test_message_send.py to
test_mirror_users.py.
2020-07-06 16:36:36 -07:00
Mohit Gupta
04cca01faa
tests: Extract test_message_send.py for message sending tests.
...
This commit extracts out MessagePOSTTest class from test_messages.py
intially.
In future commits other related message sending tests will be moved from
test_messages.py to test_message_send.py.
2020-07-06 16:36:36 -07:00
Mohit Gupta
921b7ff070
tests: Extract out test_mirror_users.py.
...
Starting with extracting out MirroredMessageUsersTests as it is related to
mirror users than anything message-specific.
In a future commit, may extract out some tests from MessagePOSTTest as well
but still deciding on those.
2020-07-06 16:36:36 -07:00
Mohit Gupta
c8f1ae15b9
tests: Extract test_message_topics.py for topic tests.
2020-07-06 16:36:36 -07:00
Mohit Gupta
ccba038779
tests: Move DeleteMessageTest class to test_message_edit.py.
2020-07-06 16:36:36 -07:00
Mohit Gupta
79d3e0a7ad
tests: Move EditMessageTest class to test_message_edit.py.
2020-07-06 16:36:36 -07:00
Anders Kaseorg
f40ad639f8
test_events: Fix check_list(None) calls.
...
These were fixed by commit acd439dee8
but reintroduced by commit 18537b63f5
.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 16:22:54 -07:00
Rohitt Vashishtha
0b510cd66d
timestamp: Hide timestamp forrmat errors in local echo.
2020-07-06 15:53:56 -07:00
Rohitt Vashishtha
732ec3c0e6
timestamp: Change syntax to `<time:timestammp>`.
...
We had been using !time() syntax for timestamps so far. Since its
an unreleased feature, we can make changes without affecting many
people.
Fixes #15442 .
2020-07-06 15:53:56 -07:00
Aman Agrawal
18537b63f5
move_topic_to_stream: Apply the event to the fetched state.
...
Fixes #14101 .
We fix the unread count for the messages which were moved to
the new stream too.
2020-07-06 15:48:55 -07:00
Mohit Gupta
f8d1e0f86a
refactor: Rename convert to markdown_convert.
...
Prior to this commit whenever convert was imported from zerver.lib.markdown
it was aliased as markdown_convert for readability.
This commit rename convert function to markdown_convert so that it can be
directly import it without aliasing and without compromising readability.
2020-07-06 12:39:59 -07:00
Anders Kaseorg
2fb96e94f1
registration: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
8e6a439529
queue_processors: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
e363382628
push_notifications: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
e24b2fdf06
markdown: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
d64f036247
outgoing_webhook: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
e3fc74fd20
event_queue: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
0d7539dc50
test_classes: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
813cee3e50
test_helpers: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
acd439dee8
test_events: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
c0bbdbcadf
test_messages: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
98cc4073ee
test_realm: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
e2965dcb52
test_signup: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
3a7a828139
test_auth_backends: Fix strict_optional_errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
d690cc32e1
test_decorators: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
c65e7772a7
test_logging_handlers: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
dd7082e466
test_narrow: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
3126243245
test_outgoing_webhook_system.py: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
26fe6be16a
test_service_bot_system: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
2a0e5616f1
test_slack_importer: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00
Anders Kaseorg
489d73f63a
queue: Fix strict_optional errors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-06 11:25:48 -07:00