Skip to content

Commit 21aa6c4

Browse files
authored
Merge pull request #7697 from nicoddemus/file-docs
2 parents 2fcf763 + ceea600 commit 21aa6c4

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

doc/en/reference.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,12 +784,19 @@ ExceptionInfo
784784
:members:
785785

786786

787-
pytest.ExitCode
788-
~~~~~~~~~~~~~~~
787+
ExitCode
788+
~~~~~~~~
789789

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

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

794801
FixtureDef
795802
~~~~~~~~~~

src/_pytest/nodes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,10 @@ def isinitpath(self, path: py.path.local) -> bool:
542542

543543

544544
class File(FSCollector):
545-
"""Base class for collecting tests from a file."""
545+
"""Base class for collecting tests from a file.
546+
547+
:ref:`non-python tests`.
548+
"""
546549

547550

548551
class Item(Node):

0 commit comments

Comments
 (0)