summaryrefslogtreecommitdiff
path: root/doc/en/xunit_setup.rst
diff options
context:
space:
mode:
authorpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2020-12-30 11:56:09 +0200
committerGitHub <noreply@github.com>2020-12-30 11:56:09 +0200
commitee03e31831900c3a7aba9f94a9693a833a3ab9de (patch)
tree431d7984ce45526a5403316fddafac12171cd25c /doc/en/xunit_setup.rst
parent77519048753f629847d3edaf8344753ad6689ada (diff)
downloadpytest-ee03e31831900c3a7aba9f94a9693a833a3ab9de.tar.gz
[pre-commit.ci] pre-commit autoupdate (#8201)
* [pre-commit.ci] pre-commit autoupdate * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * manual fixes after configuration update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Anthony Sottile <asottile@umich.edu>
Diffstat (limited to 'doc/en/xunit_setup.rst')
-rw-r--r--doc/en/xunit_setup.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/en/xunit_setup.rst b/doc/en/xunit_setup.rst
index 8b3366f62..4fea863be 100644
--- a/doc/en/xunit_setup.rst
+++ b/doc/en/xunit_setup.rst
@@ -36,7 +36,7 @@ which will usually be called once for all the functions:
def teardown_module(module):
- """ teardown any state that was previously setup with a setup_module
+ """teardown any state that was previously setup with a setup_module
method.
"""
@@ -52,14 +52,14 @@ and after all test methods of the class are called:
@classmethod
def setup_class(cls):
- """ setup any state specific to the execution of the given class (which
+ """setup any state specific to the execution of the given class (which
usually contains tests).
"""
@classmethod
def teardown_class(cls):
- """ teardown any state that was previously setup with a call to
+ """teardown any state that was previously setup with a call to
setup_class.
"""
@@ -71,13 +71,13 @@ Similarly, the following methods are called around each method invocation:
.. code-block:: python
def setup_method(self, method):
- """ setup any state tied to the execution of the given method in a
+ """setup any state tied to the execution of the given method in a
class. setup_method is invoked for every test method of a class.
"""
def teardown_method(self, method):
- """ teardown any state that was previously setup with a setup_method
+ """teardown any state that was previously setup with a setup_method
call.
"""
@@ -89,13 +89,13 @@ you can also use the following functions to implement fixtures:
.. code-block:: python
def setup_function(function):
- """ setup any state tied to the execution of the given function.
+ """setup any state tied to the execution of the given function.
Invoked for every test function in the module.
"""
def teardown_function(function):
- """ teardown any state that was previously setup with a setup_function
+ """teardown any state that was previously setup with a setup_function
call.
"""