pytest-autofixture

simplify pytest fixtures

MIT License

Downloads
40
Stars
0
Committers
1

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