Skip to content

Commit f4f30d7

Browse files
authored
Merge pull request #7716 from bluetech/backport-7697
[6.0.x] Add missing File reference to the docs
2 parents 309810a + cb91c50 commit f4f30d7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

doc/en/reference.rst

+9-2
Original file line numberDiff line numberDiff line change
@@ -783,12 +783,19 @@ ExceptionInfo
783783
:members:
784784

785785

786-
pytest.ExitCode
787-
~~~~~~~~~~~~~~~
786+
ExitCode
787+
~~~~~~~~
788788

789789
.. autoclass:: _pytest.config.ExitCode
790790
:members:
791791

792+
File
793+
~~~~
794+
795+
.. autoclass:: _pytest.nodes.File()
796+
:members:
797+
:show-inheritance:
798+
792799

793800
FixtureDef
794801
~~~~~~~~~~

src/_pytest/nodes.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,10 @@ def _collectfile(
604604

605605

606606
class File(FSCollector):
607-
""" base class for collecting tests from a file. """
607+
"""Base class for collecting tests from a file.
608+
609+
:ref:`non-python tests`.
610+
"""
608611

609612

610613
class Item(Node):

0 commit comments

Comments
 (0)