Skip to main content

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

Coverage Status installs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_autofixture-0.2.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

pytest_autofixture-0.2.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page