diff --git a/tests/app/main/views/test_headers.py b/tests/app/main/views/test_headers.py index be845e125..21591586d 100644 --- a/tests/app/main/views/test_headers.py +++ b/tests/app/main/views/test_headers.py @@ -16,7 +16,8 @@ def test_owasp_useful_headers_set( assert search(r"frame-ancestors 'none';", csp) assert search(r"form-action 'self';", csp) assert search( - r"script-src 'self' static\.example\.com 'unsafe-eval' https:\/\/js-agent\.newrelic\.com https:\/\/gov-bam\.nr-data\.net 'nonce-.*';", # noqa e501 + r"script-src 'self' static\.example\.com 'unsafe-eval' https:\/\/js-agent\.new" + r"relic\.com https:\/\/gov-bam\.nr-data\.net 'nonce-.*';", csp, ) assert search(r"connect-src 'self' https:\/\/gov-bam.nr-data\.net;", csp) diff --git a/tests/app/main/views/test_jobs.py b/tests/app/main/views/test_jobs.py index a4f72a318..862fd17e5 100644 --- a/tests/app/main/views/test_jobs.py +++ b/tests/app/main/views/test_jobs.py @@ -238,7 +238,8 @@ def test_should_show_job_with_sending_limit_exceeded_status( ) assert normalize_spaces(page.select("main p")[1].text) == ( - "Notify cannot send these messages because you have reached a limit. You can only send 1,000 messages per day and 250,000 messages in total." # noqa + "Notify cannot send these messages because you have reached a limit. " + "You can only send 1,000 messages per day and 250,000 messages in total." ) assert normalize_spaces(page.select("main p")[2].text) == ( "Upload this spreadsheet again tomorrow or contact the Notify.gov team to raise the limit."