add test for id appearing in notification table

use new pytest yield fixture
This commit is contained in:
Leo Hemsted
2016-09-09 16:30:07 +01:00
parent c47ce9b26f
commit 62868bc014
3 changed files with 30 additions and 1 deletions

View File

@@ -1202,3 +1202,9 @@ def mock_get_organisation(mocker):
return mocker.patch(
'app.organisations_client.get_organisation', side_effect=_get_organisation
)
@pytest.fixture(scope='function')
def client(app_):
with app_.test_request_context(), app_.test_client() as client:
yield client