Merge pull request #651 from alphagov/contract-tests

Contract tests
This commit is contained in:
Leo Hemsted
2016-09-05 11:31:29 +01:00
committed by GitHub
17 changed files with 513 additions and 56 deletions

View File

@@ -1,7 +1,7 @@
import os
import boto3
import mock
from unittest import mock
import pytest
from alembic.command import upgrade
from alembic.config import Config
@@ -24,6 +24,12 @@ def notify_api(request):
return app
@pytest.fixture(scope='function')
def client(notify_api):
with notify_api.test_request_context(), notify_api.test_client() as client:
yield client
@pytest.fixture(scope='session')
def notify_db(notify_api, request):
Migrate(notify_api, db)