File tree Expand file tree Collapse file tree 12 files changed +18
-18
lines changed Expand file tree Collapse file tree 12 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1
1
2
- The writing and reporting of assertions in tests
2
+ How to write and report assertions in tests
3
3
==================================================
4
4
5
5
.. _`assertfeedback` :
Original file line number Diff line number Diff line change 1
1
2
2
.. _bash_completion :
3
3
4
- Setting up bash completion
5
- ==========================
4
+ How to set up bash completion
5
+ =============================
6
6
7
7
When using bash as your shell, ``pytest `` can use argcomplete
8
8
(https://argcomplete.readthedocs.io/) for auto-completion.
Original file line number Diff line number Diff line change 1
1
2
2
.. _`captures` :
3
3
4
- Capturing of the stdout/stderr output
4
+ How to capture stdout/stderr output
5
5
=========================================================
6
6
7
7
Default stdout/stderr/stdin capturing behaviour
Original file line number Diff line number Diff line change 1
1
.. _existingtestsuite :
2
2
3
- Using pytest with an existing test suite
4
- ===========================================
3
+ How to use pytest with an existing test suite
4
+ ==============================================
5
5
6
6
Pytest can be used with most existing test suites, but its
7
7
behavior differs from other test runners such as :ref: `nose <noseintegration >` or
Original file line number Diff line number Diff line change 1
1
.. _mark :
2
2
3
- Marking test functions with attributes
4
- ======================================
3
+ How to mark test functions with attributes
4
+ ===========================================
5
5
6
6
By using the ``pytest.mark `` helper you can easily set
7
7
metadata on your test functions. You can find the full list of builtin markers
Original file line number Diff line number Diff line change 1
1
2
- Monkeypatching/mocking modules and environments
2
+ How to monkeypatch/mock modules and environments
3
3
================================================================
4
4
5
5
.. currentmodule :: _pytest.monkeypatch
Original file line number Diff line number Diff line change 1
1
.. _`noseintegration` :
2
2
3
- Running tests written for nose
3
+ How to run tests written for nose
4
4
=======================================
5
5
6
6
``pytest `` has basic support for running tests written for nose _.
Original file line number Diff line number Diff line change 6
6
7
7
.. _`parametrize-basics` :
8
8
9
- Parametrizing fixtures and test functions
9
+ How to parametrize fixtures and test functions
10
10
==========================================================================
11
11
12
12
pytest enables test parametrization at several levels:
Original file line number Diff line number Diff line change 2
2
.. _`extplugins` :
3
3
.. _`using plugins` :
4
4
5
- Installing and Using plugins
6
- ============================
5
+ How to install and use plugins
6
+ ===============================
7
7
8
8
This section talks about installing and using third party plugins.
9
9
For writing your own plugins, please refer to :ref: `writing-plugins `.
Original file line number Diff line number Diff line change 2
2
3
3
.. _skipping :
4
4
5
- Skip and xfail: dealing with tests that cannot succeed
6
- ======================================================
5
+ How to use skip and xfail to deal with tests that cannot succeed
6
+ =================================================================
7
7
8
8
You can mark test functions that cannot be run on certain platforms
9
9
or that you expect to fail so pytest can deal with them accordingly and
You can’t perform that action at this time.
0 commit comments