Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mock for tests in celery tests #30

Open
ashwoods opened this issue Jun 2, 2017 · 1 comment
Open

Use mock for tests in celery tests #30

ashwoods opened this issue Jun 2, 2017 · 1 comment

Comments

@ashwoods
Copy link
Member

ashwoods commented Jun 2, 2017

The celery docs advise against using tasks_always_eager (and is currently failing anyways in my current env)

http://docs.celeryproject.org/en/latest/userguide/testing.html

it recommends using mock to test celery tasks in unit tests.

@onekiloparsec
Copy link
Contributor

Have you seen the tests in the django-110 branch? The tests pass whatever the tasks_always_eager value.

I'd be happy to tweak the code I've made to suit your wishes for the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants