Apply review comment
This commit is contained in:
parent
120be26962
commit
5e02d9c064
|
@ -1079,6 +1079,8 @@ class IdentityFixture(FixtureDef[FixtureValue]):
|
|||
fixturemanager: "FixtureManager",
|
||||
argname: str,
|
||||
scope: Union[Scope, _ScopeName, Callable[[str, Config], _ScopeName], None],
|
||||
*,
|
||||
_ispytest: bool = False,
|
||||
):
|
||||
super().__init__(
|
||||
fixturemanager,
|
||||
|
@ -1087,7 +1089,7 @@ class IdentityFixture(FixtureDef[FixtureValue]):
|
|||
lambda request: request.param,
|
||||
scope,
|
||||
None,
|
||||
_ispytest=True,
|
||||
_ispytest=_ispytest,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -1376,7 +1376,10 @@ class Metafunc:
|
|||
fixturedef = name2pseudofixturedef[argname]
|
||||
else:
|
||||
fixturedef = IdentityFixture(
|
||||
self.definition.session._fixturemanager, argname, scope_
|
||||
self.definition.session._fixturemanager,
|
||||
argname,
|
||||
scope_,
|
||||
_ispytest=True,
|
||||
)
|
||||
if name2pseudofixturedef is not None:
|
||||
name2pseudofixturedef[argname] = fixturedef
|
||||
|
|
Loading…
Reference in New Issue