Exemplo n.º 1
0
    def test_set_testjob_result_saves_testjob(self):
        result = G(Result, manifest__manifest=MINIMAL_XML)
        testjob = G(TestJob, result=result, status='Submitted')
        set_testjob_results.apply(args=[testjob.id])

        testjob_from_db = TestJob.objects.get(pk=testjob.id)
        self.assertEqual("Complete", testjob_from_db.status)
Exemplo n.º 2
0
    def test_dont_duplicate_test_results(self):
        result = G(Result, manifest__manifest=MINIMAL_XML)
        testjob = G(TestJob, result=result, status='Submitted')

        set_testjob_results.apply(args=[testjob.id])
        set_testjob_results.apply(args=[testjob.id])

        self.assertEqual(2, result.data.count())
Exemplo n.º 3
0
 def test_ignores_lava_502(self):
     set_testjob_results.apply(args=[None])