Some possible improvements in fixtures module #11234
Labels
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
type: refactoring
internal improvements to the code
Here are a list of possible improvements in pytest fixtures, initially introduced in #10771 .
funcargs
attribute fromCallspec
to unify parameters of the test item, as funcargs are transformed into pseudo-fixtures.fixtures.py::add_funcarg_pseudo_fixture_def
and care for transforming funcargs to pseudo fixturedefs right inMetaFunc.parametrize
.FixtureArgKey
to represent fixture param by its value rather than its index if possible, as doesFixtureDef::cache_key
.FixtureArgKey
for representing fixture dependencies.fixtures.py::FuncFixtureInfo::prune_dependecy_tree
and move its responsibility to veryFixtureManager::getfixtureclosure
. I note that populatingarg2fixturedefs
is done only once.metafunc.parametrize
call within module-specific or class-specificpytest_generate_tests
hooks.The text was updated successfully, but these errors were encountered: