mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
The tests for can_create_streams and can_subscribe_other_users shares a lot of code and we deduplicate the code by extracting most of the code as check_has_permission_policies which will now be called by the two tests test_can_create_streams and test_can_subscribe_other_users. This will also help in avoiding the duplication of code when we will convert more policies to use COMMON_POLICY_TYPES.
53 KiB
53 KiB