Rename backref to service model

To reflect the new name. Appears this is only used by the tests.
This commit is contained in:
Chris Hill-Scott
2020-07-28 11:23:30 +01:00
parent 083573e4dc
commit e41022214f
5 changed files with 9 additions and 9 deletions

View File

@@ -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):

View File

@@ -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)