rename tmpdir.rst to tmp_path.rst (#8905)
This commit is contained in:
parent
febb978651
commit
388691a205
|
@ -28,7 +28,7 @@ How-to guides
|
||||||
how-to/fixtures
|
how-to/fixtures
|
||||||
how-to/mark
|
how-to/mark
|
||||||
how-to/parametrize
|
how-to/parametrize
|
||||||
how-to/tmpdir
|
how-to/tmp_path
|
||||||
how-to/monkeypatch
|
how-to/monkeypatch
|
||||||
how-to/doctest
|
how-to/doctest
|
||||||
how-to/cache
|
how-to/cache
|
||||||
|
|
|
@ -235,7 +235,7 @@ List the name ``tmp_path`` in the test function signature and ``pytest`` will lo
|
||||||
FAILED test_tmp_path.py::test_needsfiles - assert 0
|
FAILED test_tmp_path.py::test_needsfiles - assert 0
|
||||||
1 failed in 0.12s
|
1 failed in 0.12s
|
||||||
|
|
||||||
More info on temporary directory handling is available at :ref:`Temporary directories and files <tmpdir handling>`.
|
More info on temporary directory handling is available at :ref:`Temporary directories and files <tmp_path handling>`.
|
||||||
|
|
||||||
Find out what kind of builtin :ref:`pytest fixtures <fixtures>` exist with the command:
|
Find out what kind of builtin :ref:`pytest fixtures <fixtures>` exist with the command:
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ Core pytest functionality
|
||||||
fixtures
|
fixtures
|
||||||
mark
|
mark
|
||||||
parametrize
|
parametrize
|
||||||
tmpdir
|
tmp_path
|
||||||
monkeypatch
|
monkeypatch
|
||||||
doctest
|
doctest
|
||||||
cache
|
cache
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
.. _`tmpdir handling`:
|
.. _`tmp_path handling`:
|
||||||
.. _tmpdir:
|
.. _tmp_path:
|
||||||
|
|
||||||
How to use temporary directories and files in tests
|
How to use temporary directories and files in tests
|
||||||
===================================================
|
===================================================
|
||||||
|
@ -98,6 +98,7 @@ to save time:
|
||||||
See :ref:`tmp_path_factory API <tmp_path_factory factory api>` for details.
|
See :ref:`tmp_path_factory API <tmp_path_factory factory api>` for details.
|
||||||
|
|
||||||
.. _`tmpdir and tmpdir_factory`:
|
.. _`tmpdir and tmpdir_factory`:
|
||||||
|
.. _tmpdir:
|
||||||
|
|
||||||
The ``tmpdir`` and ``tmpdir_factory`` fixtures
|
The ``tmpdir`` and ``tmpdir_factory`` fixtures
|
||||||
---------------------------------------------------
|
---------------------------------------------------
|
|
@ -607,7 +607,7 @@ Each recorded warning is an instance of :class:`warnings.WarningMessage`.
|
||||||
tmp_path
|
tmp_path
|
||||||
~~~~~~~~
|
~~~~~~~~
|
||||||
|
|
||||||
:ref:`tmpdir`
|
:ref:`tmp_path`
|
||||||
|
|
||||||
.. autofunction:: _pytest.tmpdir.tmp_path()
|
.. autofunction:: _pytest.tmpdir.tmp_path()
|
||||||
:no-auto-options:
|
:no-auto-options:
|
||||||
|
|
Loading…
Reference in New Issue