Skip to content

Commit 985697b

Browse files
Format header JSON hardening tests for Ruff
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 1217b50 commit 985697b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_header_utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,13 @@ def test_parse_headers_env_json_preserves_hyperbrowser_json_errors(
171171
def _raise_hyperbrowser_error(_raw_headers: str):
172172
raise HyperbrowserError("custom header json failure")
173173

174-
monkeypatch.setattr("hyperbrowser.header_utils.json.loads", _raise_hyperbrowser_error)
174+
monkeypatch.setattr(
175+
"hyperbrowser.header_utils.json.loads", _raise_hyperbrowser_error
176+
)
175177

176-
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:
177181
parse_headers_env_json('{"X-Trace-Id":"abc123"}')
178182

179183
assert exc_info.value.original_error is None

0 commit comments

Comments
 (0)