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

pytest_profiling Plugin already registered under a different name #233

Open
mihalt opened this issue Sep 2, 2024 · 0 comments
Open

pytest_profiling Plugin already registered under a different name #233

mihalt opened this issue Sep 2, 2024 · 0 comments

Comments

@mihalt
Copy link

mihalt commented Sep 2, 2024

I define in conftest:
pytest_plugins = ["celery.contrib.pytest", "pytest_profiling"]

I run command pytest mytest --profile-svg and I get an error:

ValueError: Plugin already registered under a different name: pytest_profiling=<module 'pytest_profiling' from '/usr/local/lib/python3.10/site-packages/pytest_profiling.py'>

This is what I use in my docker-container in requirements.txt related to pytest

pytest<8.0.0 # Should be this version due to problems like this https://github.com/TvoroG/pytest-lazy-fixture/issues/65
pytest-django==4.8.0
python-dotenv==1.0.1
pytest-dotenv==0.5.2
pytest-lazy-fixture==0.6.3
pytest-celery==1.0.0
pytest-factoryboy==2.7.0
pytest-recording==0.13.2
pytest-profiling==1.7.0
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

1 participant