{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"Allows you to use pytest fixtures directly as parameters in @pytest.mark.parametrize decorators and in other fixture parameter lists.","skillfed_tags":["pytest-plugin","test-parametrization"],"use_cases":["Parametrize a test with values from a fixture that itself has multiple parameter variants.","Avoid duplicating test logic by reusing fixture definitions across multiple parametrized test cases.","Chain fixtures together where one fixture's parameters depend on another fixture's output.","Test the same function against multiple fixture-generated inputs without writing separate test functions."],"what_it_does":"pytest-lazy-fixture extends pytest's parametrize decorator to accept fixture references, bridging a gap between pytest's fixture system and its parametrization system. Normally, @pytest.mark.parametrize only accepts literal values; this package lets you pass pytest.lazy_fixture('fixture_name') to inject fixture values into parametrized tests at runtime. It also works in fixture parameter lists, allowing one fixture to depend on another fixture's parametrized values.\n\nThe package is a thin wrapper around pytest's internals and has no dependencies beyond pytest itself. It is dormant\u2014last updated in early 2020\u2014so it may not work reliably with recent pytest versions without maintenance.","worth_installing":"Yes, if your pytest version is stable and pre-2023. The package solves a real pytest limitation with low friction and no security issues. However, dormant maintenance means it may break with newer pytest releases\u2014verify compatibility with your pytest version before adopting, and consider whether pytest's native parametrization patterns can meet your needs first."},"id":"pytest-lazy-fixture","links":{"html":"https://skillfed.io/packages/pytest-lazy-fixture","md":"https://skillfed.io/packages/pytest-lazy-fixture.md","pypi":"https://pypi.org/project/pytest-lazy-fixture/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2020-02-01","license_spdx":null,"license_treatment":"permissive","name":"pytest-lazy-fixture","python_support":"unspecified","summary":"It helps to use fixtures in pytest.mark.parametrize"},"popularity":{"monthly_downloads":608183,"position":5781,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.3"}
