Skip to main content

py.test plugin to make session fixtures behave as if written in conftest, even if it is written in some modules

Project description

# pytest-session-fixture-globalize

pytest-forcefail is a plugin to make scope=’session’ fixtures behave as if written in conftest.py.

See test_session_fixture_globalize.py for example.

Unlike usual plugin, this touches the deep area of _pytest.fixtures.FixtureManager. You have to enable this plugin explicitly by –session-fixture-globalize option or PYTEST_SESSION_FIXTURE_GLOBALIZE env.

Binary distribution: https://pypi.org/project/pytest-session-fixture-globalize/

Download files

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

Source Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page