mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 13:14:28 +03:00
Address test coverage issues.
This commit is contained in:
parent
1cb8d4d6d7
commit
191d4768a5
|
@ -7,7 +7,7 @@ from django.conf import settings
|
|||
|
||||
if not settings.configured:
|
||||
# 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}}')
|
||||
|
@ -26,8 +26,8 @@ class CeleryConfig(AppConfig):
|
|||
|
||||
@app.task(bind=True)
|
||||
def debug_task(self):
|
||||
print('Request: {0!r}'.format(self.request))
|
||||
print('Request: {0!r}'.format(self.request)) # noqa
|
||||
{% else %}
|
||||
# Use this as a starting point for your project with celery.
|
||||
# If you are not using celery, you can remove this app
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user