We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3994d15 commit 77a4a1dCopy full SHA for 77a4a1d
tests/unit/test_multi_html_reporter.py
@@ -190,7 +190,10 @@ def test_generate_html_xss_prevention_repo_name(
190
html_content = temp_html_file.read_text(encoding="utf-8")
191
192
# 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
+ assert (
194
+ "alert('XSS')" not in html_content
195
+ or "<script>alert('XSS')</script>" in html_content
196
+ )
197
# Verify the escaped version exists
198
assert "<script>" in html_content
199
0 commit comments