Skip to content

Commit

Permalink
Add missing File reference to the docs
Browse files Browse the repository at this point in the history
As related in #7696
  • Loading branch information
nicoddemus committed Aug 28, 2020
1 parent 2fcf763 commit ceea600
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 9 additions & 2 deletions doc/en/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -784,12 +784,19 @@ ExceptionInfo
:members:


pytest.ExitCode
~~~~~~~~~~~~~~~
ExitCode
~~~~~~~~

.. autoclass:: _pytest.config.ExitCode
:members:

File
~~~~

.. autoclass:: _pytest.nodes.File()
:members:
:show-inheritance:


FixtureDef
~~~~~~~~~~
Expand Down
5 changes: 4 additions & 1 deletion src/_pytest/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,10 @@ def isinitpath(self, path: py.path.local) -> bool:


class File(FSCollector):
"""Base class for collecting tests from a file."""
"""Base class for collecting tests from a file.
:ref:`non-python tests`.
"""


class Item(Node):
Expand Down

0 comments on commit ceea600

Please sign in to comment.