mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
@@ -139,13 +139,15 @@ def test_fetch_count_of_complaints(sample_email_notification):
|
||||
)
|
||||
|
||||
count_of_complaints = fetch_count_of_complaints(
|
||||
start_date=datetime(2018, 6, 7), end_date=datetime(2018, 6, 7),
|
||||
start_date=datetime(2018, 6, 7),
|
||||
end_date=datetime(2018, 6, 7),
|
||||
)
|
||||
assert count_of_complaints == 5
|
||||
|
||||
|
||||
def test_fetch_count_of_complaints_returns_zero(notify_db_session):
|
||||
count_of_complaints = fetch_count_of_complaints(
|
||||
start_date=datetime(2018, 6, 7), end_date=datetime(2018, 6, 7),
|
||||
start_date=datetime(2018, 6, 7),
|
||||
end_date=datetime(2018, 6, 7),
|
||||
)
|
||||
assert count_of_complaints == 0
|
||||
|
||||
@@ -57,7 +57,11 @@ def test_fetch_service_data_retention_returns_empty_list_when_no_rows_for_servic
|
||||
|
||||
|
||||
def test_fetch_service_data_retention_by_id(sample_service):
|
||||
email_data_retention = insert_service_data_retention(sample_service.id, NotificationType.EMAIL, 3,)
|
||||
email_data_retention = insert_service_data_retention(
|
||||
sample_service.id,
|
||||
NotificationType.EMAIL,
|
||||
3,
|
||||
)
|
||||
insert_service_data_retention(sample_service.id, NotificationType.SMS, 13)
|
||||
result = fetch_service_data_retention_by_id(
|
||||
sample_service.id, email_data_retention.id
|
||||
|
||||
Reference in New Issue
Block a user