mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 17:45:41 -04:00
Remove contact list db, dao, and s3 code
This commit is contained in:
@@ -23,7 +23,6 @@ from tests.app.db import (
|
||||
create_job,
|
||||
create_notification,
|
||||
create_service,
|
||||
create_service_contact_list,
|
||||
create_template,
|
||||
)
|
||||
|
||||
@@ -165,26 +164,6 @@ def test_get_jobs_for_service_in_processed_at_then_created_at_order(notify_db_se
|
||||
assert jobs[index].id == created_jobs[index].id
|
||||
|
||||
|
||||
def test_get_jobs_for_service_by_contact_list(sample_template):
|
||||
contact_list = create_service_contact_list()
|
||||
job_1 = create_job(sample_template)
|
||||
job_2 = create_job(sample_template, contact_list_id=contact_list.id)
|
||||
|
||||
assert dao_get_jobs_by_service_id(
|
||||
sample_template.service.id
|
||||
).items == [
|
||||
job_2,
|
||||
job_1,
|
||||
]
|
||||
|
||||
assert dao_get_jobs_by_service_id(
|
||||
sample_template.service.id,
|
||||
contact_list_id=contact_list.id,
|
||||
).items == [
|
||||
job_2,
|
||||
]
|
||||
|
||||
|
||||
def test_update_job(sample_job):
|
||||
assert sample_job.job_status == 'pending'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user