users: Remove unused variable in get_user_dicts_in_realm.

This commit is contained in:
Sahil Batra
2025-04-10 21:10:19 +05:30
committed by Tim Abbott
parent 7ebea853be
commit 7e77100433
2 changed files with 1 additions and 4 deletions

View File

@@ -1044,9 +1044,6 @@ def get_accessible_user_ids(
def get_user_dicts_in_realm(
realm: Realm, user_profile: UserProfile | None
) -> tuple[list[RawUserDict], list[APIUserDict]]:
group_allowed_to_access_all_users = realm.can_access_all_users_group
assert group_allowed_to_access_all_users is not None
all_user_dicts = get_realm_user_dicts(realm.id)
if check_user_can_access_all_users(user_profile):
return (all_user_dicts, [])

View File

@@ -171,7 +171,7 @@ class EventsEndpointTest(ZulipTestCase):
status_code=401,
)
with self.assert_database_query_count(15):
with self.assert_database_query_count(14):
result = self.client_post("/json/register")
result_dict = self.assert_json_success(result)
self.assertEqual(result_dict["queue_id"], None)