Skip to content

Commit 096973c

Browse files
Test extension missing-key whitespace normalization
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 4c6cb93 commit 096973c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_extension_utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ def test_parse_extension_list_response_data_missing_key_normalizes_blank_key_nam
155155
parse_extension_list_response_data({" ": "value"})
156156

157157

158+
def test_parse_extension_list_response_data_missing_key_strips_surrounding_whitespace():
159+
with pytest.raises(
160+
HyperbrowserError,
161+
match="Expected 'extensions' key in response but got \\[spaced-key\\] keys",
162+
):
163+
parse_extension_list_response_data({" spaced-key ": "value"})
164+
165+
158166
def test_parse_extension_list_response_data_missing_key_normalizes_control_characters():
159167
with pytest.raises(
160168
HyperbrowserError,

0 commit comments

Comments
 (0)