simplify pytest fixtures
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pytest_autofixture-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd2abcab27858d5ccfac439336e69210d534e55b7ed8313e2297cbfdcc891c4d |
|
MD5 | a736ebc722cbc0e4bf4899b6006d8f63 |
|
BLAKE2b-256 | 121b49ac05a0e867b1bc6ce6e98e709ace40e9ef28a46a13d7fa83d731e302f8 |