pytest-deadfixtures icon indicating copy to clipboard operation
pytest-deadfixtures copied to clipboard

Plugin to list unused fixtures in your tests

Results 21 pytest-deadfixtures issues
Sort by recently updated
recently updated
newest added

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. ![image](https://user-images.githubusercontent.com/44274784/189232268-e624d558-3f56-42a0-a967-075a140a30ef.png) To double check if ii is so, I run `grep -r 'almost_uniform_1d' tests` and get ![image](https://user-images.githubusercontent.com/44274784/189232360-6b32ea3a-6eea-44bd-96f2-910e286ec7fe.png). So,...