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

celery_worker fixture name colides with celery_worker fixture from celery.contrib.pytest #442

Open
vesnikos opened this issue Feb 5, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@vesnikos
Copy link

vesnikos commented Feb 5, 2025

pytest-celery contains a container based celery_worker fixture. celery_worker fixture also used for celery in celery.contrib.pytest.

When a test is called like this:

def test_a(celery_app, celery_worker):
    celery_app
    celery_worker
    assert True

celery_app is from celery.contrib.pytest and celery_worker is from pytest-celery (docker based)

@vesnikos vesnikos added the bug Something isn't working label Feb 5, 2025
@auvipy
Copy link
Member

auvipy commented Feb 6, 2025

thanks for the report

@celery celery deleted a comment from greptile-apps bot Feb 18, 2025
@celery celery deleted a comment from greptile-apps bot Feb 19, 2025
@celery celery deleted a comment from greptile-apps bot Mar 5, 2025
@dgaus
Copy link

dgaus commented Mar 20, 2025

This is currently preventing us from adopting pytest-celery > 1 as the clash breaks our existing tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants