mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-25 10:29:34 -04:00
Rename backref to service model
To reflect the new name. Appears this is only used by the tests.
This commit is contained in:
@@ -43,8 +43,8 @@ def test_remove_service_whitelist_only_removes_for_my_service(notify_db, notify_
|
||||
|
||||
dao_remove_service_guest_list(service_1.id)
|
||||
|
||||
assert service_1.whitelist == []
|
||||
assert len(service_2.whitelist) == 1
|
||||
assert service_1.guest_list == []
|
||||
assert len(service_2.guest_list) == 1
|
||||
|
||||
|
||||
def test_remove_service_whitelist_does_not_commit(notify_db, sample_service_whitelist):
|
||||
|
||||
@@ -793,7 +793,7 @@ def test_should_not_send_notification_to_non_whitelist_recipient_in_trial_mode(
|
||||
apply_async = mocker.patch('app.celery.provider_tasks.deliver_{}.apply_async'.format(notification_type))
|
||||
template = create_template(service, template_type=notification_type)
|
||||
assert sample_service_whitelist.service_id == service.id
|
||||
assert to not in [member.recipient for member in service.whitelist]
|
||||
assert to not in [member.recipient for member in service.guest_list]
|
||||
|
||||
create_notification(template=template)
|
||||
|
||||
@@ -852,7 +852,7 @@ def test_should_send_notification_to_whitelist_recipient(
|
||||
service_whitelist = create_service_whitelist(sample_service, email_address=to)
|
||||
|
||||
assert service_whitelist.service_id == sample_service.id
|
||||
assert to in [member.recipient for member in sample_service.whitelist]
|
||||
assert to in [member.recipient for member in sample_service.guest_list]
|
||||
|
||||
create_notification(template=template)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user