We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1217b50 commit 985697bCopy full SHA for 985697b
1 file changed
tests/test_header_utils.py
@@ -171,9 +171,13 @@ def test_parse_headers_env_json_preserves_hyperbrowser_json_errors(
171
def _raise_hyperbrowser_error(_raw_headers: str):
172
raise HyperbrowserError("custom header json failure")
173
174
- monkeypatch.setattr("hyperbrowser.header_utils.json.loads", _raise_hyperbrowser_error)
+ monkeypatch.setattr(
175
+ "hyperbrowser.header_utils.json.loads", _raise_hyperbrowser_error
176
+ )
177
- with pytest.raises(HyperbrowserError, match="custom header json failure") as exc_info:
178
+ with pytest.raises(
179
+ HyperbrowserError, match="custom header json failure"
180
+ ) as exc_info:
181
parse_headers_env_json('{"X-Trace-Id":"abc123"}')
182
183
assert exc_info.value.original_error is None
0 commit comments