You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why does Metafunc.parametrize() assign one scope to all parameters? Could it be extended to accept a list in scope=?
Instead of cartesian product, I want to generate pairwise combinations (https://pypi.org/project/allpairspy/). But when I apply the generated argument tuples with one .parametrize() call, I can then set the scope only for all parameters/arguments at once. Which either:
a) breaks fixtures
b) causes incorrect sorting order
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Why does
Metafunc.parametrize()
assign one scope to all parameters? Could it be extended to accept a list inscope=
?Instead of cartesian product, I want to generate pairwise combinations (https://pypi.org/project/allpairspy/). But when I apply the generated argument tuples with one
.parametrize()
call, I can then set the scope only for all parameters/arguments at once. Which either:a) breaks fixtures
b) causes incorrect sorting order
Beta Was this translation helpful? Give feedback.
All reactions