mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-05 08:40:29 -04:00
Remove sample_notification_with_api_key fixture
This was only used once and was not Pytest 4 compatible.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user