mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Change the updates to only look at today, and not yesterday.
This commit is contained in:
@@ -777,7 +777,16 @@ def test_get_organisation_services_usage_returns_400_if_year_is_invalid(admin_re
|
||||
response = admin_request.get(
|
||||
'organisation.get_organisation_services_usage',
|
||||
organisation_id=uuid.uuid4(),
|
||||
**{"year": 'year'},
|
||||
**{"year": 'not-a-valid-year'},
|
||||
_expected_status=400
|
||||
)
|
||||
assert response['message'] == 'No valid year provided'
|
||||
|
||||
|
||||
def test_get_organisation_services_usage_returns_400_if_year_is_empty(admin_request):
|
||||
response = admin_request.get(
|
||||
'organisation.get_organisation_services_usage',
|
||||
organisation_id=uuid.uuid4(),
|
||||
_expected_status=400
|
||||
)
|
||||
assert response['message'] == 'No valid year provided'
|
||||
|
||||
Reference in New Issue
Block a user