mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
test_users: Clean up type ignores.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
75a01810e3
commit
7cd11d0559
@ -437,8 +437,7 @@ class PermissionTest(ZulipTestCase):
|
||||
cordelia = self.example_user("cordelia")
|
||||
for field_dict in cordelia.profile_data:
|
||||
with self.subTest(field_name=field_dict['name']):
|
||||
self.assertEqual(field_dict['value'], fields[field_dict['name']]) # type: ignore # Reason in comment
|
||||
# Invalid index type for dict key, it must be str but field_dict values can be anything
|
||||
self.assertEqual(field_dict['value'], fields[field_dict['name']])
|
||||
|
||||
# Test admin user cannot set invalid profile data
|
||||
invalid_fields = [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user