Warn or fail on fixture name clash
In the face of ambiguity, refuse the temptation to guess.
This plugin detects when you have two fixtures that share the same name, and throws an error in that case, instead of silently choosing the later/inner-most one.
pip install pytest-fixture-rtttg
After this, the plugin should automatically do its job.
When the duplicate name is intentional, you can use the
dupe mark to stop
this from happening:
@pytest.fixture @pytest.mark.dupe def some_fixture(): ...
Usually though, you're better of just choosing a different name.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for pytest-fixture-rtttg-0.1.1.tar.gz
Hashes for pytest_fixture_rtttg-0.1.1-py3-none-any.whl