pytest-fixture-rtttg
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.
Installation
pip install pytest-fixture-rtttg
After this, the plugin should automatically do its job.
Customization
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 files for pytest-fixture-rtttg 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-fixture-rtttg-0.1.1.tar.gz | 2.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_fixture_rtttg-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / pytest-fixture-rtttg-0.1.1.tar.gz
| Download URL | pytest-fixture-rtttg-0.1.1.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e0224af91993f7851a0d62cabf6b6f9792fcbf21fd96e57b33e0e2596fed1cf
|
|
BLAKE2b-256 checksum How to use checksums |
ec0d5c5d2948a6b195eeddc26850bfe56efa868d04bc7e364574d5110f5a3aef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.10.0 Darwin/21.3.0
|
Release files / pytest_fixture_rtttg-0.1.1-py3-none-any.whl
| Download URL | pytest_fixture_rtttg-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd08e94c46f3d1fca0e5d272015639d17a7f40fc55cfa0a327f456086e1ffc22
|
|
BLAKE2b-256 checksum How to use checksums |
c1d57c2344007a7cfabe973f4b251009d32feb2de32418cd069ce08a23c059ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.10.0 Darwin/21.3.0
|