New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor test_message.py into seperate files #15661
refactor test_message.py into seperate files #15661
Conversation
9047269
to
5231104
Compare
dffae52
to
0887bd9
Compare
@timabbott @showell Please review if I am going in right direction. |
0887bd9
to
81c31cd
Compare
@timabbott @showell Ready for review. There are few other tests which can be split out but I am still figuring out on those. But for now I think these can be merged. |
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.
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.
….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.
This commit moves ScheduledMessageTest that tests sending scheduled messages from test_messages.py 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.
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.
This commit moves ExtractTest class to test_message_send.py as they test input parsing extract_* functions used in message sending enpoints.
1553d04
to
f879f09
Compare
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.
MessageHydrationTest tests hydration done by MessageDict, so moving it out of test_messages.py 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.
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.
These changes are great, thanks @thedeveloperr! I merged this PR with no changes as the series ending with 98cff4e. For next steps, I think we should:
I believe that list would complete the removal of Thanks @thedeveloperr! |
https://chat.zulip.org/#narrow/stream/3-backend/topic/zerver.2Eviews.2Emessages
Testing Plan:
GIFs or Screenshots: