doc/tmpdir: significantly reduce space dedicated to tmpdir/tmpdir_factory

Emphasize tmp_path/tmp_path_factory and just note the legacy ones.
This commit is contained in:
Ran Benita
2021-03-13 19:45:11 +02:00
parent ef1308c23b
commit ba7bd3d77c
2 changed files with 22 additions and 84 deletions

View File

@@ -582,7 +582,7 @@ tmp_path
:no-auto-options:
.. fixture:: _pytest.tmpdir.tmp_path_factory
.. fixture:: tmp_path_factory
tmp_path_factory
~~~~~~~~~~~~~~~~
@@ -601,7 +601,7 @@ tmp_path_factory
tmpdir
~~~~~~
:ref:`tmpdir`
:ref:`tmpdir and tmpdir_factory`
.. autofunction:: _pytest.tmpdir.tmpdir()
:no-auto-options:
@@ -612,9 +612,7 @@ tmpdir
tmpdir_factory
~~~~~~~~~~~~~~
:ref:`tmpdir factory example`
.. _`tmpdir factory api`:
:ref:`tmpdir and tmpdir_factory`
``tmp_path_factory`` is an instance of :class:`~pytest.TempdirFactory`: