Fix broken test

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2025-07-29 17:55:04 -04:00
parent bf9d17d660
commit 3db62a1921

View File

@@ -49,4 +49,4 @@ def test_owasp_useful_headers_set(
expected_sources <= actual_sources
), f"Missing sources in connect-src: {expected_sources - actual_sources}"
assert search(r"style-src 'self' static\.example\.com 'nonce-.*';", csp)
assert search(r"img-src 'self' static\.example\.com static-logos\.test\.com", csp)
assert search(r"img-src 'self' static\.example\.com", csp)