mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Tests added for dao.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
def test_owasp_useful_headers_set(notifications_admin):
|
||||
with notifications_admin.test_request_context():
|
||||
response = notifications_admin.test_client().get('/')
|
||||
def test_owasp_useful_headers_set(app_):
|
||||
with app_.test_request_context():
|
||||
response = app_.test_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