Remove sample_notification_with_api_key fixture

This was only used once and was not Pytest 4 compatible.
This commit is contained in:
Katie Smith
2019-09-13 13:26:46 +01:00
parent 09e8ac9644
commit 62735ea125
3 changed files with 11 additions and 16 deletions

View File

@@ -628,18 +628,6 @@ def sample_letter_notification(sample_letter_template):
return create_notification(sample_letter_template, reference='foo', personalisation=address)
@pytest.fixture(scope='function')
def sample_notification_with_api_key(notify_db, notify_db_session):
notification = sample_notification(notify_db, notify_db_session)
notification.api_key = sample_api_key(
notify_db,
notify_db_session,
name='Test key'
)
notification.api_key_id = notification.api_key.id
return notification
@pytest.fixture(scope='function')
def sample_email_notification(notify_db, notify_db_session):
created_at = datetime.utcnow()