Пример #1
0
 def test_task_update(self):
     task = self._create_task({})
     db.task_update(task['uuid'], {'failed': True})
     db_task = self._get_task(task['uuid'])
     self.assertTrue(db_task['failed'])
Пример #2
0
 def test_task_update_all_stats(self):
     _uuid = self._create_task({})['uuid']
     for status in consts.TaskStatus:
         db.task_update(_uuid, {'status': status})
         db_task = self._get_task(_uuid)
         self.assertEqual(db_task['status'], status)
Пример #3
0
 def test_task_update(self):
     task = self._create_task({})
     db.task_update(task['uuid'], {'failed': True})
     db_task = self._get_task(task['uuid'])
     self.assertTrue(db_task['failed'])
Пример #4
0
 def test_task_update_all_stats(self):
     _uuid = self._create_task({})['uuid']
     for status in consts.TaskStatus:
         db.task_update(_uuid, {'status': status})
         db_task = self._get_task(_uuid)
         self.assertEqual(db_task['status'], status)
Пример #5
0
 def test_task_update_all_stats(self):
     _uuid = self._create_task({})["uuid"]
     for status in consts.TaskStatus:
         db.task_update(_uuid, {"status": status})
         db_task = self._get_task(_uuid)
         self.assertEqual(db_task["status"], status)
Пример #6
0
 def _update(self, values):
     if not self.fake:
         self.task = db.task_update(self.task["uuid"], values)
Пример #7
0
 def _update(self, values):
     self.task = db.task_update(self.task['uuid'], values)
Пример #8
0
 def test_task_update(self):
     task = self._create_task({})
     db.task_update(task["uuid"], {"status": consts.TaskStatus.FAILED})
     db_task = self._get_task(task["uuid"])
     self.assertEqual(db_task["status"], consts.TaskStatus.FAILED)
Пример #9
0
 def _update(self, values):
     if not self.fake:
         self.task = db.task_update(self.task["uuid"], values)
Пример #10
0
 def _update(self, values):
     self.task = db.task_update(self.task['uuid'], values)
Пример #11
0
 def test_task_update_all_stats(self):
     _uuid = self._create_task({})["uuid"]
     for status in consts.TaskStatus:
         db.task_update(_uuid, {"status": status})
         db_task = self._get_task(_uuid)
         self.assertEqual(db_task["status"], status)
Пример #12
0
 def test_task_update(self):
     task = self._create_task({})
     db.task_update(task["uuid"], {"status": consts.TaskStatus.FAILED})
     db_task = self._get_task(task["uuid"])
     self.assertEqual(db_task["status"], consts.TaskStatus.FAILED)
Пример #13
0
 def test_task_update(self):
     task = self._create_task({})
     db.task_update(task["uuid"], {"failed": True})
     db_task = self._get_task(task["uuid"])
     self.assertTrue(db_task["failed"])