From 5693d1181e157464dd454e7f10bd5ccac8ee466e Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Fri, 26 Oct 2018 17:51:50 +0100 Subject: [PATCH] add notify_db_session to test funcs that hit db --- tests/app/service/test_archived_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/app/service/test_archived_service.py b/tests/app/service/test_archived_service.py index b06e7ba01..abd179c24 100644 --- a/tests/app/service/test_archived_service.py +++ b/tests/app/service/test_archived_service.py @@ -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