zulip/zerver
sahil839 bc72d2dbc4 tests: Remove unnecessary use of do_change_user_role in test_subs.
This commit removes the unnecessary do_change_user_role function
in test_can_subcribe_other_users. This was added in 1aebf3cab
which replaced the multiple functions like do_change_is_admin
and do_change_is_guest with do_change_user_role.

Previously two functions do_change_is_admin and do_change_is_guest
were used because there were two flags is_realm_admin and is_guest
which were used to determine the role of a user. But then we added
a single field role to UserProfile and removed the multiple flags
and thus also replaced the different functions with a single
do_change_user_role. With addition of a new field role, two
different do_change_* functions were not needed as we only have
a role field instead of different flags, but this was missed in
1aebf3cab and this commit fixes it.
2021-03-24 12:33:58 -07:00
..
data_import import/export: Fix deprecated authentication method for Slack. 2021-03-08 12:56:37 -08:00
lib event_schema: Add checker for restart event. 2021-03-23 12:16:20 -07:00
management python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
migrations display_settings: Allow user to set default_view. 2021-03-11 18:09:08 -08:00
openapi event_schema: Add schema check for realm/deactivated event. 2021-03-23 12:16:16 -07:00
templatetags python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
tests tests: Remove unnecessary use of do_change_user_role in test_subs. 2021-03-24 12:33:58 -07:00
tornado docs: Add a document explaining email/push notifications. 2021-03-05 15:24:25 -08:00
views api: Support user_id in get_user_presence_endpoint. 2021-03-11 20:14:04 -08:00
webhooks sentry: Do not assume context lines exist in stacktrace. 2021-03-22 12:16:10 -07:00
worker invites: Delete old compat code in the invites queue worker. 2021-02-26 08:26:43 -08:00
__init__.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
apps.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
context_processors.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
decorator.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
filters.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
forms.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
logging_handlers.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
middleware.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
models.py models: Make get_human_admin_users optionally not return realm owners. 2021-03-22 18:10:03 -07:00
signals.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00