mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Simplify the code in the query.
The date in the notifications table should always be the most recent date for the template. Removed the template_type param for the query as well. Simplified the tests.
This commit is contained in:
@@ -221,7 +221,7 @@ def test_get_last_used_datetime_for_template_returns_400_if_service_does_not_exi
|
||||
)
|
||||
|
||||
|
||||
def test_get_last_used_datetime_for_template_returns_400_if_template_does_not_exist(
|
||||
def test_get_last_used_datetime_for_template_returns_404_if_template_does_not_exist(
|
||||
admin_request, sample_template
|
||||
):
|
||||
admin_request.get(
|
||||
|
||||
Reference in New Issue
Block a user