2021-03-13 06:57:53 +08:00
|
|
|
:orphan:
|
|
|
|
|
2021-03-17 04:26:05 +08:00
|
|
|
.. _how-to:
|
|
|
|
|
2021-03-13 06:57:53 +08:00
|
|
|
How-to guides
|
|
|
|
================
|
|
|
|
|
2021-03-15 16:22:11 +08:00
|
|
|
Core pytest functionality
|
|
|
|
-------------------------
|
|
|
|
|
2021-03-13 06:57:53 +08:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
usage
|
|
|
|
assert
|
2021-03-15 16:22:11 +08:00
|
|
|
fixtures
|
2021-03-13 06:57:53 +08:00
|
|
|
mark
|
2021-03-15 16:22:11 +08:00
|
|
|
parametrize
|
2021-07-14 23:53:27 +08:00
|
|
|
tmp_path
|
2021-03-15 16:22:11 +08:00
|
|
|
monkeypatch
|
|
|
|
doctest
|
|
|
|
cache
|
|
|
|
|
2021-04-09 08:19:30 +08:00
|
|
|
Test output and outcomes
|
2021-03-15 16:22:11 +08:00
|
|
|
----------------------------
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
2021-04-09 08:19:30 +08:00
|
|
|
failures
|
|
|
|
output
|
2021-03-15 16:22:11 +08:00
|
|
|
logging
|
|
|
|
capture-stdout-stderr
|
|
|
|
capture-warnings
|
2021-03-13 06:57:53 +08:00
|
|
|
skipping
|
2021-03-15 16:22:11 +08:00
|
|
|
|
|
|
|
Plugins
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
2021-03-13 06:57:53 +08:00
|
|
|
plugins
|
2021-03-15 16:22:11 +08:00
|
|
|
writing_plugins
|
|
|
|
writing_hook_functions
|
|
|
|
|
|
|
|
pytest and other test systems
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
existingtestsuite
|
|
|
|
unittest
|
|
|
|
xunit_setup
|
|
|
|
|
|
|
|
pytest development environment
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
2021-03-13 06:57:53 +08:00
|
|
|
bash-completion
|