/pytest-lazy-fixture

It helps to use fixtures in pytest.mark.parametrize

Primary LanguagePythonMIT LicenseMIT

pytest-lazy-fixture travis-ci appveyor pypi

Use your fixtures in @pytest.mark.parametrize.

Installation

pip install pytest-lazy-fixture

Usage

pytest-lazy-fixture lets you use a fixture as one of the values passed in @pytest.mark.parametrize:

This can be even more useful when the fixture is itself parametrized:

Also you can use it as a parameter in @pytest.fixture:

Please see tests for more examples.

Contributing

Contributions are very welcome. Tests can be run with tox.

License

Distributed under the terms of the MIT license, pytest-lazy-fixture is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.