mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -04:00
Use client and logged_in_client fixtures
Wherever possible, because Don’t Repeat Yourself.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
|
||||
def test_owasp_useful_headers_set(app_):
|
||||
with app_.test_request_context():
|
||||
response = app_.test_client().get('/')
|
||||
def test_owasp_useful_headers_set(client):
|
||||
response = client.get('/')
|
||||
assert response.status_code == 200
|
||||
assert response.headers['X-Frame-Options'] == 'deny'
|
||||
assert response.headers['X-Content-Type-Options'] == 'nosniff'
|
||||
|
||||
Reference in New Issue
Block a user