Make sure we recognize when a model changes state from active to inactive and back

Conflicts:
	awx/main/signals.py
This commit is contained in:
Matthew Jones
2014-05-14 16:02:56 -04:00
parent 93c2a5e31c
commit f49805db0b
2 changed files with 22 additions and 3 deletions

View File

@@ -638,7 +638,7 @@ class RunJobTest(BaseCeleryTest):
host.last_job = job
host.last_job_host_summary = JobHostSummary.objects.get(job=job, host=host)
host.save()
job.inventory.update_computed_fields()
self.inventory.update_computed_fields()
self.host = Host.objects.get(pk=self.host.pk)
self.assertTrue(self.host.has_active_failures)
self.group = Group.objects.get(pk=self.group.pk)