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
I define in conftest:
pytest_plugins = ["celery.contrib.pytest", "pytest_profiling"]
I run command
pytest mytest --profile-svg
and I get an error:This is what I use in my docker-container in requirements.txt related to pytest