jazzband / django-queued-storage

Provides a proxy for Django storage backends that allows you to upload files locally and eventually serve them remotely
http://django-queued-storage.rtfd.org/
BSD 3-Clause "New" or "Revised" License
317 stars 62 forks source link

Use mock for tests in celery tests #30

Open ashwoods opened 7 years ago

ashwoods commented 7 years ago

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 commented 7 years ago

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.