Skip to content

Commit

Permalink
add assertions for scheduler.create_job
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Nov 23, 2024
1 parent 65060d2 commit 62a9570
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_sched.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,13 @@ def test_scheduler_find_new_jobs(test_db, mock_api, workflows_config_dir, site_c
assert isinstance(new_job, SchedulerJob)
assert new_job.workflow.type == "nmdc:MagsAnalysis"
assert new_job.trigger_act.type == "nmdc:MetagenomeAnnotation"
assert new_job.trigger_act.data_objects_by_type

job_req = scheduler.create_job_rec(new_job)
assert job_req
assert job_req["config"]["activity"]["type"] == "nmdc:MagsAnalysis"
assert job_req["config"]["was_informed_by"] == "nmdc:omprc-11-cegmwy02"
assert job_req["config"]["input_data_objects"]



0 comments on commit 62a9570

Please sign in to comment.