diff --git a/docs/testing/testing-with-django.md b/docs/testing/testing-with-django.md index 8576b84943..201de9a172 100644 --- a/docs/testing/testing-with-django.md +++ b/docs/testing/testing-with-django.md @@ -106,7 +106,7 @@ influence tests results.) Here are some example action methods that tests may use for data setup: - check_send_message -- do_change_is_admin +- do_change_user_role - do_create_user - do_make_stream_private diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index c2a8539e1b..8b89c013cc 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -457,14 +457,14 @@ python_rules = RuleList( 'description': 'Raise CommandError to exit with failure in management commands', }, {'pattern': '.is_realm_admin =', - 'description': 'Use do_change_is_admin function rather than setting UserProfile\'s is_realm_admin attribute directly.', + 'description': 'Use do_change_user_role function rather than setting UserProfile\'s is_realm_admin attribute directly.', 'exclude': { 'zerver/migrations/0248_userprofile_role_start.py', 'zerver/tests/test_users.py', }, }, {'pattern': '.is_guest =', - 'description': 'Use do_change_is_guest function rather than setting UserProfile\'s is_guest attribute directly.', + 'description': 'Use do_change_user_role function rather than setting UserProfile\'s is_guest attribute directly.', 'exclude': { 'zerver/migrations/0248_userprofile_role_start.py', 'zerver/tests/test_users.py',