Skip to content

Commit 2a32ed3

Browse files
Test extension missing-key control placeholder semantics
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent b855f97 commit 2a32ed3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/test_extension_utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ def test_parse_extension_list_response_data_missing_key_normalizes_control_chara
163163
parse_extension_list_response_data({"bad\tkey": "value"})
164164

165165

166+
def test_parse_extension_list_response_data_missing_key_preserves_control_placeholders():
167+
with pytest.raises(
168+
HyperbrowserError,
169+
match="Expected 'extensions' key in response but got \\[\\?\\?\\] keys",
170+
):
171+
parse_extension_list_response_data({"\n\t": "value"})
172+
173+
166174
def test_parse_extension_list_response_data_missing_key_handles_unprintable_keys():
167175
class _BrokenStringKey:
168176
def __str__(self) -> str:

0 commit comments

Comments
 (0)