Added Docstring description for the Path property of the FixtureRequest class.
This commit is contained in:
parent
fab696dcd1
commit
5a9536cf42
|
@ -486,6 +486,7 @@ class FixtureRequest:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def path(self) -> Path:
|
def path(self) -> Path:
|
||||||
|
"""Path where the test function was collected."""
|
||||||
if self.scope not in ("function", "class", "module", "package"):
|
if self.scope not in ("function", "class", "module", "package"):
|
||||||
raise AttributeError(f"path not available in {self.scope}-scoped context")
|
raise AttributeError(f"path not available in {self.scope}-scoped context")
|
||||||
# TODO: Remove ignore once _pyfuncitem is properly typed.
|
# TODO: Remove ignore once _pyfuncitem is properly typed.
|
||||||
|
|
Loading…
Reference in New Issue