Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tests: Use check_dict_only for custom_profile_field.

Steve Howell69126ca80900
diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.py
index 6986e223d57..2245eba0112 100644
--- a/zerver/tests/test_events.py
+++ b/zerver/tests/test_events.py
@@ -1134,7 +1134,7 @@ class EventsRegisterTest(ZulipTestCase):
('op', equals('update')),
('person', check_dict_only([
('user_id', check_int),
- ('custom_profile_field', check_dict([
+ ('custom_profile_field', check_dict_only([
('id', check_int),
('value', check_none_or(check_string)),
])),
@@ -1146,7 +1146,7 @@ class EventsRegisterTest(ZulipTestCase):
('op', equals('update')),
('person', check_dict_only([
('user_id', check_int),
- ('custom_profile_field', check_dict([
+ ('custom_profile_field', check_dict_only([
('id', check_int),
('value', check_none_or(check_string)),
('rendered_value', check_none_or(check_string)),