Beispiel #1
0
 def test_basic_deletion(self):
     new_run = Run('test_basic_deletion')
     new_job = Job({'job_id': '42'}, new_run)
     models.commit()
     new_job.delete()
     models.commit()
     assert not Job.filter_by(job_id='42').first()
Beispiel #2
0
 def test_basic_deletion(self):
     new_run = Run('test_basic_deletion')
     new_job = Job({'job_id': '42'}, new_run)
     models.commit()
     new_job.delete()
     models.commit()
     assert not Job.filter_by(job_id='42').first()
Beispiel #3
0
 def test_delete_empties_run(self):
     new_run = Run('test_delete_empties_run')
     new_job = Job(dict(job_id='42', status='queued'), new_run)
     models.commit()
     assert new_run.status == 'queued'
     new_job.delete()
     models.commit()
     new_run_copy = Run.query.filter(Run.name == new_run.name).one()
     assert not new_run_copy.status == 'empty'
Beispiel #4
0
 def test_delete_empties_run(self):
     new_run = Run('test_delete_empties_run')
     new_job = Job(dict(job_id='42', status='queued'), new_run)
     models.commit()
     assert new_run.status == 'queued'
     new_job.delete()
     models.commit()
     new_run_copy = Run.query.filter(Run.name == new_run.name).one()
     assert not new_run_copy.status == 'empty'