man-group / man-group/pytest-plugins

pytest_profiling Plugin already registered under a different name

Open
#233 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
597
Forks
89
PR merge metrics
No merged PRs in 30d

Description

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=
```

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
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the conftest.py pytest_plugins declaration and the requirements.txt versions, then reproduce with `pytest mytest --profile-svg`. Done means celery.contrib.pytest and pytest_profiling can be loaded together without the duplicate plugin-registration error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.