mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 17:01:35 -05:00
add notify_db_session to test funcs that hit db
This commit is contained in:
@@ -17,13 +17,13 @@ from tests.app.conftest import (
|
||||
)
|
||||
|
||||
|
||||
def test_archive_only_allows_post(client):
|
||||
def test_archive_only_allows_post(client, notify_db_session):
|
||||
auth_header = create_authorization_header()
|
||||
response = client.get('/service/{}/archive'.format(uuid.uuid4()), headers=[auth_header])
|
||||
assert response.status_code == 405
|
||||
|
||||
|
||||
def test_archive_service_errors_with_bad_service_id(client):
|
||||
def test_archive_service_errors_with_bad_service_id(client, notify_db_session):
|
||||
auth_header = create_authorization_header()
|
||||
response = client.post('/service/{}/archive'.format(uuid.uuid4()), headers=[auth_header])
|
||||
assert response.status_code == 404
|
||||
|
||||
Reference in New Issue
Block a user