mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 18:18:26 -04:00
remove dupe fixture
This commit is contained in:
@@ -1099,22 +1099,6 @@ def mock_get_notifications(mocker, api_user_active):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope='function')
|
|
||||||
def mock_get_notification(mocker, api_user_active):
|
|
||||||
def _get_notification(
|
|
||||||
service_id,
|
|
||||||
notification_id,
|
|
||||||
):
|
|
||||||
return single_notification_json(
|
|
||||||
service_id,
|
|
||||||
)
|
|
||||||
|
|
||||||
return mocker.patch(
|
|
||||||
'app.notification_api_client.get_notification',
|
|
||||||
side_effect=_get_notification
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def mock_get_notifications_with_previous_next(mocker):
|
def mock_get_notifications_with_previous_next(mocker):
|
||||||
def _get_notifications(service_id,
|
def _get_notifications(service_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user