def phony_job(): return Job.from_state('phony_job', { 'params': [], 'service_ver': '0.0.0' }, 'kbasetest', 'NarrativeTest/test_editor', tag='dev')
def phony_job(): return Job.from_state( "phony_job", { "params": [], "service_ver": "0.0.0" }, "kbasetest", "NarrativeTest/test_editor", tag="dev", )
def test_job_from_state(self): job_info = { "params": self.inputs, "service_ver": self.app_version } job = Job.from_state(self.job_id, job_info, self.owner, self.app_id, tag=self.app_tag, cell_id=self.cell_id, run_id=self.run_id, token_id=self.token_id) self.assertEqual(job.job_id, self.job_id) self.assertEqual(job.app_id, self.app_id) self.assertEqual(job.inputs, self.inputs) self.assertEqual(job.owner, self.owner) self.assertEqual(job.tag, self.app_tag) self.assertEqual(job.app_version, self.app_version) self.assertEqual(job.cell_id, self.cell_id) self.assertEqual(job.run_id, self.run_id) self.assertEqual(job.token_id, self.token_id)
def phony_job(): return Job.from_state('phony_job', {'params': [], 'service_ver': '0.0.0'}, 'kbasetest', 'NarrativeTest/test_editor', tag='dev')