Add a new test

This commit is contained in:
Rebecca Law
2018-08-06 15:13:08 +01:00
parent 517608dff5
commit 43000b2253

View File

@@ -136,7 +136,10 @@ def test_update_service_data_retention_does_not_update_row_if_data_retention_is_
@pytest.mark.parametrize('notification_type, alternate',
[('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):
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)