mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
fix test that did not depend on the notify-db-session fixture, so left a messy db
This commit is contained in:
@@ -339,10 +339,9 @@ def test_get_all_notifications_no_notifications_if_no_notifications(client, samp
|
|||||||
assert len(json_response['notifications']) == 0
|
assert len(json_response['notifications']) == 0
|
||||||
|
|
||||||
|
|
||||||
def test_get_all_notifications_filter_by_template_type(client):
|
def test_get_all_notifications_filter_by_template_type(client, sample_service):
|
||||||
service = create_service()
|
email_template = create_template(service=sample_service, template_type="email")
|
||||||
email_template = create_template(service=service, template_type="email")
|
sms_template = create_template(service=sample_service, template_type="sms")
|
||||||
sms_template = create_template(service=service, template_type="sms")
|
|
||||||
|
|
||||||
notification = create_notification(template=email_template, to_field="don.draper@scdp.biz")
|
notification = create_notification(template=email_template, to_field="don.draper@scdp.biz")
|
||||||
create_notification(template=sms_template)
|
create_notification(template=sms_template)
|
||||||
|
|||||||
Reference in New Issue
Block a user