add tests and remove old aggregate code

This commit is contained in:
Leo Hemsted
2016-07-28 18:09:17 +01:00
parent 2ab23fa4ef
commit a7c8e88ecb
3 changed files with 53 additions and 23 deletions

View File

@@ -220,15 +220,6 @@ def mock_get_service_statistics_for_day(mocker):
'app.statistics_api_client.get_statistics_for_service_for_day', side_effect=_stats)
@pytest.fixture(scope='function')
def mock_get_aggregate_service_statistics(mocker):
def _create(service_id, limit_days=None):
return {'data': [{}]}
return mocker.patch(
'app.statistics_api_client.get_7_day_aggregate_for_service', side_effect=_create)
@pytest.fixture(scope='function')
def mock_get_all_service_statistics(mocker):
def _create(day):