Skip to content

Commit 50367f2

Browse files
Merge branch 'main' into Fix-feed-test-with-only-initialnames-not-whole-closure
2 parents 4bf2285 + f6b6478 commit 50367f2

File tree

7 files changed

+38
-14
lines changed

7 files changed

+38
-14
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ Simon Holesch
348348
Simon Kerr
349349
Skylar Downes
350350
Srinivas Reddy Thatiparthy
351+
Stefaan Lippens
351352
Stefan Farmbauer
352353
Stefan Scherfke
353354
Stefan Zimmermann

changelog/11391.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improved disclaimer on pytest plugin reference page to better indicate this is an automated, non-curated listing.

doc/en/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
.. sidebar:: Next Open Trainings
44

5-
- `pytest: Professionelles Testen (nicht nur) für Python <https://workshoptage.ch/workshops/2023/pytest-professionelles-testen-nicht-nur-fuer-python-2/>`_, at `Workshoptage 2023 <https://workshoptage.ch/>`_, **September 5th**, `OST <https://www.ost.ch/en>`_ Campus **Rapperswil, Switzerland**
65
- `Professional Testing with Python <https://python-academy.com/courses/python_course_testing.html>`_, via `Python Academy <https://www.python-academy.com/>`_, **March 5th to 7th 2024** (3 day in-depth training), **Leipzig, Germany / Remote**
76

87
Also see :doc:`previous talks and blogposts <talks>`.

doc/en/reference/plugin_list.rst

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,26 @@
33

44
.. _plugin-list:
55

6-
Plugin List
7-
===========
6+
Pytest Plugin List
7+
==================
88

9-
PyPI projects that match "pytest-\*" are considered plugins and are listed
10-
automatically together with a manually-maintained list in `the source
11-
code <https://github.com/pytest-dev/pytest/blob/main/scripts/update-plugin-list.py>`_.
9+
Below is an automated compilation of ``pytest``` plugins available on `PyPI <https://pypi.org>`_.
10+
It includes PyPI projects whose names begin with "pytest-" and a handful of manually selected projects.
1211
Packages classified as inactive are excluded.
1312

13+
For detailed insights into how this list is generated,
14+
please refer to `the update script <https://github.com/pytest-dev/pytest/blob/main/scripts/update-plugin-list.py>`_.
15+
16+
.. warning::
17+
18+
Please be aware that this list is not a curated collection of projects
19+
and does not undergo a systematic review process.
20+
It serves purely as an informational resource to aid in the discovery of ``pytest`` plugins.
21+
22+
Do not presume any endorsement from the ``pytest`` project or its developers,
23+
and always conduct your own quality assessment before incorporating any of these plugins into your own projects.
24+
25+
1426
.. The following conditional uses a different format for this list when
1527
creating a PDF, because otherwise the table gets far too wide for the
1628
page.

scripts/update-plugin-list.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,26 @@
2020
2121
.. _plugin-list:
2222
23-
Plugin List
24-
===========
23+
Pytest Plugin List
24+
==================
2525
26-
PyPI projects that match "pytest-\*" are considered plugins and are listed
27-
automatically together with a manually-maintained list in `the source
28-
code <https://github.com/pytest-dev/pytest/blob/main/scripts/update-plugin-list.py>`_.
26+
Below is an automated compilation of ``pytest``` plugins available on `PyPI <https://pypi.org>`_.
27+
It includes PyPI projects whose names begin with "pytest-" and a handful of manually selected projects.
2928
Packages classified as inactive are excluded.
3029
30+
For detailed insights into how this list is generated,
31+
please refer to `the update script <https://github.com/pytest-dev/pytest/blob/main/scripts/update-plugin-list.py>`_.
32+
33+
.. warning::
34+
35+
Please be aware that this list is not a curated collection of projects
36+
and does not undergo a systematic review process.
37+
It serves purely as an informational resource to aid in the discovery of ``pytest`` plugins.
38+
39+
Do not presume any endorsement from the ``pytest`` project or its developers,
40+
and always conduct your own quality assessment before incorporating any of these plugins into your own projects.
41+
42+
3143
.. The following conditional uses a different format for this list when
3244
creating a PDF, because otherwise the table gets far too wide for the
3345
page.

src/_pytest/fixtures.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,7 @@ def __repr__(self) -> str:
685685

686686
def _fillfixtures(self) -> None:
687687
item = self._pyfuncitem
688-
fixturenames = getattr(item, "fixturenames", self.fixturenames)
689-
for argname in fixturenames:
688+
for argname in item.fixturenames:
690689
if argname not in item.funcargs:
691690
item.funcargs[argname] = self.getfixturevalue(argname)
692691

src/_pytest/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ def __init__(self, initialnames):
17321732
def __getitem__(self, key: str) -> object:
17331733
if key not in self.initialnames:
17341734
warnings.warn(
1735-
"Accessing to names other than initialnames i.e., direct args,"
1735+
"Access to names other than initialnames i.e., direct args,"
17361736
" the ones with `usefixture` or the ones with `autouse` through "
17371737
"`item.funcargs` is deprecated and will raise `KeyError` from "
17381738
"pytest 9. Please use `request.getfixturevalue` instead.",

0 commit comments

Comments
 (0)