pytest-autofixture
Simplify pytest fixtures by making them automagically available. Tests can reference fixtures without needing to reference them as function parameters.
Install
pip install pytest-autofixture
Usage
# conftest.py
import pytest
@pytest.fixture
def one():
return 1
# test_one.py
def test_one():
assert one == 1
Release files for pytest-autofixture 0.2.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_autofixture-0.2.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_autofixture-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / pytest_autofixture-0.2.1.tar.gz
| Download URL | pytest_autofixture-0.2.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a6f4a08db1eaf75f76e77733b7805c2b89c5f835e29b452ee92fc528fc6d504
|
|
BLAKE2b-256 checksum How to use checksums |
952f814b65778b897fbf798376654c462fc1e60cd43bdf4ac96afbca63cc05d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / pytest_autofixture-0.2.1-py3-none-any.whl
| Download URL | pytest_autofixture-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd2abcab27858d5ccfac439336e69210d534e55b7ed8313e2297cbfdcc891c4d
|
|
BLAKE2b-256 checksum How to use checksums |
121b49ac05a0e867b1bc6ce6e98e709ace40e9ef28a46a13d7fa83d731e302f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|