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

Make into generic celery-worker-testcase #3

Open
graingert opened this issue Jun 30, 2014 · 1 comment
Open

Make into generic celery-worker-testcase #3

graingert opened this issue Jun 30, 2014 · 1 comment

Comments

@graingert
Copy link

I'm using celery in a project without the Django settings modules

It would be great if I could use a CeleryTestCase as follows:

from my_service.app import app
from my_service.tasks import my_task

class MyTaskTestCase(CeleryTestCaseMixin, TestCase):
    apps = (app, ) # instead of using Django settings use a specific celery app.
    # Should be monkey patched to use the in memory celery queue
    def test_my_task(self):
        my_task.delay()
@willembult
Copy link
Member

Great, check out the celerytest package I created to replace this one: https://github.com/RentMethod/celerytest. It doesn't depend on Django and has monitoring, so your tests don't have to wait arbitrarily.

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

No branches or pull requests

2 participants