mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Use named arguments for clearer string formatting
Helps when the string is long. Also helps disambiguate between the CDN domain used for the logos and those for CSS/JS.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
def test_owasp_useful_headers_set(client, mocker):
|
||||
mocker.patch('app.get_cdn_domain', return_value='static-logos.test.com')
|
||||
mocker.patch('app.get_logo_cdn_domain', return_value='static-logos.test.com')
|
||||
|
||||
response = client.get('/')
|
||||
|
||||
@@ -20,7 +20,7 @@ def test_owasp_useful_headers_set(client, mocker):
|
||||
|
||||
|
||||
def test_headers_non_ascii_characters_are_replaced(client, mocker):
|
||||
mocker.patch('app.get_cdn_domain', return_value='static-logos۾.test.com')
|
||||
mocker.patch('app.get_logo_cdn_domain', return_value='static-logos۾.test.com')
|
||||
|
||||
response = client.get('/')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user