[7.1.x] Added Docstring description for the Path property of FixtureRequest #9975
This commit is contained in:
parent
c19571f30d
commit
9c3bc106dd
1
AUTHORS
1
AUTHORS
|
@ -257,6 +257,7 @@ Oscar Benjamin
|
||||||
Parth Patel
|
Parth Patel
|
||||||
Patrick Hayes
|
Patrick Hayes
|
||||||
Paul Müller
|
Paul Müller
|
||||||
|
Paul Reece
|
||||||
Pauli Virtanen
|
Pauli Virtanen
|
||||||
Pavel Karateev
|
Pavel Karateev
|
||||||
Paweł Adamczak
|
Paweł Adamczak
|
||||||
|
|
|
@ -491,6 +491,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