add notify_db_session to test funcs that hit db

This commit is contained in:
Leo Hemsted
2018-10-26 17:51:50 +01:00
parent 936c8489b3
commit 5693d1181e

View File

@@ -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