Celery tests

This commit is contained in:
Martyn Inglis
2016-02-09 13:31:45 +00:00
parent 1a7c521ebb
commit fb41acdac9
9 changed files with 84 additions and 5 deletions

7
run_celery.py Normal file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env python
import os
from app import celery, create_app
from app.celery.tasks import refresh_services
application = create_app(os.getenv('NOTIFY_API_ENVIRONMENT') or 'development')
application.app_context().push()