Address test coverage issues.

This commit is contained in:
Daniel Greenfeld 2015-09-13 13:59:02 -07:00
parent 1cb8d4d6d7
commit 191d4768a5

View File

@ -7,7 +7,7 @@ from django.conf import settings
if not settings.configured: if not settings.configured:
# set the default Django settings module for the 'celery' program. # set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") # noqa
app = Celery('{{cookiecutter.repo_name}}') app = Celery('{{cookiecutter.repo_name}}')
@ -26,8 +26,8 @@ class CeleryConfig(AppConfig):
@app.task(bind=True) @app.task(bind=True)
def debug_task(self): def debug_task(self):
print('Request: {0!r}'.format(self.request)) print('Request: {0!r}'.format(self.request)) # noqa
{% else %} {% else %}
# Use this as a starting point for your project with celery. # Use this as a starting point for your project with celery.
# If you are not using celery, you can remove this app # If you are not using celery, you can remove this app
{% endif %} {% endif %}