Пример #1
0
    def test_get_job(self):
        wf = Workflow("wf")
        j1 = Job("t1", _id="j1")
        wf.add_jobs(j1)

        assert j1 == wf.get_job("j1")
Пример #2
0
 def test_get_invalid_job(self):
     wf = Workflow("wf")
     with pytest.raises(NotFoundError):
         wf.get_job("abc123")
Пример #3
0
    def test_add_job(self, job):
        wf = Workflow("wf")
        wf.add_jobs(job)

        assert job == wf.get_job("job")