mirror of
https://github.com/zulip/zulip.git
synced 2025-11-23 07:52:35 +00:00
We were not passing any arguments to needs_subscribe_warning when testing the function itself. This commit changes the code to pass the user-id and stream-id to needs_subscribe_warning. We also remove the stubs for get_by_user_id and is_user_subscribed and do these tests by calling the original functions, because passing the arguments (user-id and stream-id) only makes sense if we use original functions for them rather than stubs.
56 KiB
56 KiB