mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-17 04:58:50 -04:00
Add a new test
This commit is contained in:
@@ -136,7 +136,10 @@ def test_update_service_data_retention_does_not_update_row_if_data_retention_is_
|
|||||||
|
|
||||||
@pytest.mark.parametrize('notification_type, alternate',
|
@pytest.mark.parametrize('notification_type, alternate',
|
||||||
[('sms', 'email'),
|
[('sms', 'email'),
|
||||||
('email', 'sms'), ('letter', 'email')])
|
('email', 'sms'),
|
||||||
|
('letter', 'email'),
|
||||||
|
('letter', 'sms')]
|
||||||
|
)
|
||||||
def test_fetch_service_data_retention_by_notification_type(sample_service, notification_type, alternate):
|
def test_fetch_service_data_retention_by_notification_type(sample_service, notification_type, alternate):
|
||||||
data_retention = create_service_data_retention(service_id=sample_service.id, notification_type=notification_type)
|
data_retention = create_service_data_retention(service_id=sample_service.id, notification_type=notification_type)
|
||||||
create_service_data_retention(service_id=sample_service.id, notification_type=alternate)
|
create_service_data_retention(service_id=sample_service.id, notification_type=alternate)
|
||||||
|
|||||||
Reference in New Issue
Block a user