We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 096973c commit cd263cbCopy full SHA for cd263cb
1 file changed
tests/test_list_parsing_utils.py
@@ -144,6 +144,19 @@ def test_parse_mapping_list_items_falls_back_when_key_display_returns_blank_stri
144
)
145
146
147
+def test_parse_mapping_list_items_strips_surrounding_whitespace_in_key_display():
148
+ with pytest.raises(
149
+ HyperbrowserError,
150
+ match="Failed to read demo object value for key 'field' at index 0",
151
+ ):
152
+ parse_mapping_list_items(
153
+ [_ExplodingValueMapping()],
154
+ item_label="demo",
155
+ parse_item=lambda payload: payload,
156
+ key_display=lambda key: f" {key} ",
157
+ )
158
+
159
160
def test_parse_mapping_list_items_falls_back_when_key_display_returns_control_chars():
161
with pytest.raises(
162
HyperbrowserError,
0 commit comments