Exemple #1
0
 def _save_taskset(self, taskset_id, result):
     """Store the result of an executed taskset."""
     session = self.ResultSession()
     try:
         taskset = TaskSet(taskset_id, result)
         session.add(taskset)
         session.flush()
         session.commit()
         return result
     finally:
         session.close()
Exemple #2
0
 def test_TaskSet__repr__(self):
     self.assertIn("foo", repr(TaskSet("foo", None)))