{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"Allows you to reference pytest fixtures directly within @pytest.mark.parametrize decorators, including nested data structures and fixture attributes.","skillfed_tags":["pytest-plugin","test-parametrization"],"use_cases":["Parametrize tests with fixture-derived values without duplicating fixture logic in test parameters.","Test multiple scenarios where each scenario needs a fresh instance of a complex fixture object.","Build parametrized test cases that reference fixture attributes or call fixture methods.","Use fixtures as arguments to custom callables within parametrize, enabling flexible test data composition."],"what_it_does":"pytest-lazy-fixtures extends pytest's parametrize decorator to accept fixture references as parameter values, solving the limitation that fixtures cannot normally be used directly in @pytest.mark.parametrize. It provides two main tools: lf (lazy_fixture) for simple fixture references and lfc (lazy_fixture_callable) for wrapping callables that should receive fixture values. The package supports fixtures nested in data structures (lists, dicts, tuples), attribute access via dot notation (e.g., lf('fixture.attr')), and automatic parameter injection based on callable signatures.\n\nThe package depends only on pytest and is compatible with other pytest plugins. It targets Python 3.8 and above and is distributed under the MIT license, making it suitable for most projects.","worth_installing":"Yes. The package solves a genuine pytest limitation with low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. It is well-suited for projects that need to parametrize tests with fixture-derived values."},"id":"pytest-lazy-fixtures","links":{"html":"https://skillfed.io/packages/pytest-lazy-fixtures","md":"https://skillfed.io/packages/pytest-lazy-fixtures.md","pypi":"https://pypi.org/project/pytest-lazy-fixtures/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-12","license_spdx":"MIT","license_treatment":"permissive","name":"pytest-lazy-fixtures","python_support":"supports_current","summary":"Allows you to use fixtures in @pytest.mark.parametrize."},"popularity":{"monthly_downloads":2186025,"position":3225,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.4.1"}
