pytest-deadfixtures
pytest-deadfixtures copied to clipboard
Plugin to list unused fixtures in your tests
What the title says :)
Seems be the same as #22, but for duplicated fixtures. ``` Fixture name: service__enabled, location: :3 ```
The template uses that package. Integrated was added in that PR https://github.com/fandsdev/django/pull/377
This new `--used-fixtures` command lists fixtures used in the tests that are run. There might already be a builtin pytest command to do this, but I couldn't find it, so...
I am using this approach in some of my fixtures: ```python @pytest.fixture() def async_wrapper(): """Fixture to convert all regular functions into async ones.""" def factory(template: str) -> str: return template.replace(...
Because of issues similar to #21, it would be nice to have a comment we can use to disable/suppress errors for certain fixtures. Here's a minimal example: ```python @pytest.fixture def...
As I have already mentioned in https://github.com/jllorencetti/pytest-deadfixtures/issues/16#issuecomment-385154686 this plugin breaks the test count in the output. ## How it is now It seams that this plugin breaks something related with...
As we have discussed in https://github.com/jllorencetti/pytest-deadfixtures/issues/16#issuecomment-385133269 `--dup-fixtures` right now does not raise exceptions even when there are duplicates. I can think of several things: 1. Current behavior is not mentioned...
Hi, after I run ` pytest --dead-fixtures` I get an output e.g.  To double check if ii is so, I run `grep -r 'almost_uniform_1d' tests` and get . So,...