File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,21 @@ def __str__(self) -> str:
232232 parse_extension_list_response_data ({_ControlStringKey (): "value" })
233233
234234
235+ def test_parse_extension_list_response_data_missing_key_handles_strip_and_sanitize_stringified_keys ():
236+ class _MixedStringKey :
237+ def __str__ (self ) -> str :
238+ return " bad\t key "
239+
240+ with pytest .raises (
241+ HyperbrowserError ,
242+ match = (
243+ "Expected 'extensions' key in response but got "
244+ "\\ [bad\\ ?key\\ ] keys"
245+ ),
246+ ):
247+ parse_extension_list_response_data ({_MixedStringKey (): "value" })
248+
249+
235250def test_parse_extension_list_response_data_missing_key_handles_string_subclass_str_results ():
236251 class _StringSubclassKey :
237252 class _RenderedKey (str ):
You can’t perform that action at this time.
0 commit comments