Add API client method to fetch service data retention by type

This commit is contained in:
Alexey Bezhan
2018-08-13 17:06:16 +01:00
parent 28b03fe748
commit 52d48ad679
3 changed files with 23 additions and 0 deletions

View File

@@ -533,6 +533,14 @@ def mock_get_service_statistics(mocker, api_user_active):
return mocker.patch('app.service_api_client.get_service_statistics', side_effect=_get)
@pytest.fixture(scope='function')
def mock_get_service_data_retention_by_notification_type(mocker, api_user_active):
def _get(service_id, notification_type):
return {}
return mocker.patch('app.service_api_client.get_service_data_retention_by_notification_type', side_effect=_get)
@pytest.fixture(scope='function')
def mock_get_detailed_services(mocker, fake_uuid):
service_one = service_json(