Skip to content

pytest_profiling Plugin already registered under a different name #233

@mihalt

Description

@mihalt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions