mirror of https://github.com/zulip/zulip.git
refactoring: Remove unnecessary _allow_only_listed_keys in test_events.
When I was initially writing the tests to solve issue #10131 in PR 2 schema checkers as I modified the code to send the rendered_value only when required. When I was using just 1 schema checker shared between two code paths, we needed _allow_only_listed_keys. But after shifting to 2 schema checkers for the two different cases, we no longer needed that flag, and it's better to remove it for a stronger check.
This commit is contained in:
parent
19a4c6de6a
commit
10211e7565
|
@ -1077,7 +1077,7 @@ class EventsRegisterTest(ZulipTestCase):
|
|||
('custom_profile_field', check_dict([
|
||||
('id', check_int),
|
||||
('value', check_none_or(check_string)),
|
||||
], _allow_only_listed_keys=False)),
|
||||
])),
|
||||
])),
|
||||
])
|
||||
|
||||
|
@ -1090,7 +1090,7 @@ class EventsRegisterTest(ZulipTestCase):
|
|||
('id', check_int),
|
||||
('value', check_none_or(check_string)),
|
||||
('rendered_value', check_none_or(check_string)),
|
||||
], _allow_only_listed_keys=False)),
|
||||
])),
|
||||
])),
|
||||
])
|
||||
|
||||
|
|
Loading…
Reference in New Issue