mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Remove the status column from jobs, and update the new job status column with the previous values
This commit is contained in:
committed by
Chris Hill-Scott
parent
668e6c9716
commit
6488feaeec
@@ -215,15 +215,15 @@ def test_get_jobs_for_service_in_created_at_order(notify_db, notify_db_session,
|
||||
|
||||
|
||||
def test_update_job(sample_job):
|
||||
assert sample_job.status == 'pending'
|
||||
assert sample_job.job_status == 'pending'
|
||||
|
||||
sample_job.status = 'in progress'
|
||||
sample_job.job_status = 'in progress'
|
||||
|
||||
dao_update_job(sample_job)
|
||||
|
||||
job_from_db = Job.query.get(sample_job.id)
|
||||
|
||||
assert job_from_db.status == 'in progress'
|
||||
assert job_from_db.job_status == 'in progress'
|
||||
|
||||
|
||||
def test_get_scheduled_jobs_gets_all_jobs_in_scheduled_state_scheduled_before_now(notify_db, notify_db_session):
|
||||
|
||||
Reference in New Issue
Block a user