Esempio n. 1
0
 def test_update_jobdoctor(self):
     repo = Repo(dal.session)
     jobdoctor = repo.get_jobdoctor(doctor_id=1, job_id='1')
     jobdoctor.request_id = 23
     jobdoctor.request_started = datetime.datetime.now().astimezone(
         datetime.timezone.utc)
     ok: bool = repo.update_jobdoctor(jobdoctor)
     self.assertTrue(ok)
Esempio n. 2
0
 def update_jobdoctor(self, jobdoctor: JobDoctor) -> bool:
     self.log_info("run: update_jobdoctor")
     repo = Repo(self.dal.session)
     ok: bool = repo.update_jobdoctor(jobdoctor)
     self.log_info(f"run: update_jobdoctor, result={ok}")
     return ok