Bypass task runner system in normal job start tests... we'll test it another way so assume we want to just start the job right away

This commit is contained in:
Matthew Jones
2014-03-19 11:09:14 -04:00
parent 1093b00e2a
commit 14e138a7bd
8 changed files with 180 additions and 242 deletions

View File

@@ -385,6 +385,8 @@ class Job(CommonTask):
return dependencies
def signal_start(self, **kwargs):
if hasattr(settings, 'CELERY_UNIT_TEST'):
return self.start(None, **kwargs)
if not self.can_start:
return False
needed = self._get_passwords_needed_to_start()