Merge pull request #3939 from alphagov/check-daily-limit-for-csv-uploads

Check the daily limit get the daily notification_count from redis.
This commit is contained in:
Rebecca Law
2021-06-29 14:41:22 +01:00
committed by GitHub
6 changed files with 23 additions and 39 deletions

View File

@@ -502,7 +502,7 @@ def mock_get_service(mocker, api_user_active):
@pytest.fixture(scope='function')
def mock_get_service_statistics(mocker, api_user_active):
def _get(service_id, today_only, limit_days=None):
def _get(service_id, limit_days=None):
return {
'email': {'requested': 0, 'delivered': 0, 'failed': 0},
'sms': {'requested': 0, 'delivered': 0, 'failed': 0},