def test_celery_process_task(self): """Test the actual celery process by firing it off. Requires a celery worker and mongodb to be running. See the shell scripts in the celerystalk module. Will expand setup to make the call to spin up a celery worker for testing. """ for i in range(100): slice_job = create_dummy_job() result = SliceBase.write_files( slice_job.job_id, self.model_raw, self.config_raw, self.model_filename, self.config_filename) self.assertTrue(result) job = models.get_job_by_id(slice_job.job_id) self.assertIsNotNone(job) logging.info('starting task tests') tasks.process_job.delay(slice_job.job_id, self.slicer, self.version)