def test_get_job(self): wf = Workflow("wf") j1 = Job("t1", _id="j1") wf.add_jobs(j1) assert j1 == wf.get_job("j1")
def test_get_invalid_job(self): wf = Workflow("wf") with pytest.raises(NotFoundError): wf.get_job("abc123")
def test_add_job(self, job): wf = Workflow("wf") wf.add_jobs(job) assert job == wf.get_job("job")