Skip to content

Commit 77a4a1d

Browse files
committed
style: apply black formatting to test_multi_html_reporter.py
1 parent 3994d15 commit 77a4a1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/test_multi_html_reporter.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ def test_generate_html_xss_prevention_repo_name(
190190
html_content = temp_html_file.read_text(encoding="utf-8")
191191

192192
# Verify XSS payload is escaped (not checking for legitimate script tags)
193-
assert "alert('XSS')" not in html_content or "<script>alert('XSS')</script>" in html_content
193+
assert (
194+
"alert('XSS')" not in html_content
195+
or "<script>alert('XSS')</script>" in html_content
196+
)
194197
# Verify the escaped version exists
195198
assert "<script>" in html_content
196199

0 commit comments

Comments
 (0)