From 5a9536cf42a9f570de7e43285bb3313c39240816 Mon Sep 17 00:00:00 2001 From: Paul Reece Date: Fri, 17 Jun 2022 11:52:18 -0400 Subject: [PATCH 1/2] Added Docstring description for the Path property of the FixtureRequest class. --- src/_pytest/fixtures.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py index fc6539db0..32c3ec4b0 100644 --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -486,6 +486,7 @@ class FixtureRequest: @property def path(self) -> Path: + """Path where the test function was collected.""" if self.scope not in ("function", "class", "module", "package"): raise AttributeError(f"path not available in {self.scope}-scoped context") # TODO: Remove ignore once _pyfuncitem is properly typed. From cdc287d21aab827d3a11981ecf26745b777e9dfe Mon Sep 17 00:00:00 2001 From: Paul Reece Date: Fri, 17 Jun 2022 12:00:18 -0400 Subject: [PATCH 2/2] Added self to Authors --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index d1f1b5503..939c671dc 100644 --- a/AUTHORS +++ b/AUTHORS @@ -261,6 +261,7 @@ Oscar Benjamin Parth Patel Patrick Hayes Paul Müller +Paul Reece Pauli Virtanen Pavel Karateev Paweł Adamczak