mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Updated notification retention limit validator test to account for the new 10K limit
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -78,13 +78,13 @@ def test_check_application_over_retention_limit_fails(
|
|||||||
service = create_service()
|
service = create_service()
|
||||||
mocker.patch(
|
mocker.patch(
|
||||||
"app.notifications.validators.dao_get_notification_count_for_service",
|
"app.notifications.validators.dao_get_notification_count_for_service",
|
||||||
return_value="5001",
|
return_value="10001",
|
||||||
)
|
)
|
||||||
|
|
||||||
with pytest.raises(TotalRequestsError) as e:
|
with pytest.raises(TotalRequestsError) as e:
|
||||||
check_application_over_retention_limit(key_type, service)
|
check_application_over_retention_limit(key_type, service)
|
||||||
assert e.value.status_code == 429
|
assert e.value.status_code == 429
|
||||||
assert e.value.message == "Exceeded total application limits (5000) for today"
|
assert e.value.message == "Exceeded total application limits (10000) for today"
|
||||||
assert e.value.fields == []
|
assert e.value.fields == []
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user