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()
def test_TaskSet__repr__(self): self.assertIn("foo", repr(TaskSet("foo", None)))