Fix the typo and update test
This commit is contained in:
parent
4797deab99
commit
68361d937b
|
@ -1516,7 +1516,7 @@ def _find_parametrized_scope(
|
|||
if all_arguments_are_fixtures:
|
||||
fixturedefs = arg2fixturedefs or {}
|
||||
used_scopes = [
|
||||
fixturedef[0]._scope
|
||||
fixturedef[-1]._scope
|
||||
for name, fixturedef in fixturedefs.items()
|
||||
if name in argnames
|
||||
]
|
||||
|
|
|
@ -151,6 +151,7 @@ class TestMetafunc:
|
|||
module_fix=[DummyFixtureDef(Scope.Module)],
|
||||
class_fix=[DummyFixtureDef(Scope.Class)],
|
||||
func_fix=[DummyFixtureDef(Scope.Function)],
|
||||
mixed_fix=[DummyFixtureDef(Scope.Module), DummyFixtureDef(Scope.Class)],
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -187,6 +188,7 @@ class TestMetafunc:
|
|||
)
|
||||
== Scope.Module
|
||||
)
|
||||
assert find_scope(["mixed_fix"], indirect=True) == Scope.Class
|
||||
|
||||
def test_parametrize_and_id(self) -> None:
|
||||
def func(x, y):
|
||||
|
|
Loading…
Reference in New Issue