Use your fixtures in @pytest.mark.parametrize
.
pip install pytest-lazy-fixture
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.
Contributions are very welcome. Tests can be run with tox
.
Distributed under the terms of the MIT
license, pytest-lazy-fixture
is free and open source software
If you encounter any problems, please file an issue
along with a detailed description.