diff options
author | Bruno Oliveira <bruno@esss.com.br> | 2019-06-29 09:11:09 -0300 |
---|---|---|
committer | Bruno Oliveira <bruno@esss.com.br> | 2019-06-29 09:11:09 -0300 |
commit | 789a3662ce7aa1dad3eea208d6d8dc191f50e506 (patch) | |
tree | 8de0e58955b78b8850f3c2272fa2a8abbf25ab6e /doc/en/writing_plugins.rst | |
parent | 93a68cdfb4731b3592002a2dbdd7d18e8afb7919 (diff) | |
download | pytest-789a3662ce7aa1dad3eea208d6d8dc191f50e506.tar.gz |
Fix linting
Diffstat (limited to 'doc/en/writing_plugins.rst')
-rw-r--r-- | doc/en/writing_plugins.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/en/writing_plugins.rst b/doc/en/writing_plugins.rst index 4fb1948b9..1596eeb54 100644 --- a/doc/en/writing_plugins.rst +++ b/doc/en/writing_plugins.rst @@ -641,6 +641,7 @@ class or module can then be passed to the ``pluginmanager`` using the ``pytest_a def pytest_addhooks(pluginmanager): """ This example assumes the hooks are grouped in the 'hooks' module. """ from my_app.tests import hooks + pluginmanager.add_hookspecs(hooks) For a real world example, see `newhooks.py`_ from `xdist <https://github.com/pytest-dev/pytest-xdist>`_. @@ -656,7 +657,7 @@ through the ``hook`` object, available in the ``config`` object. Most hooks rece @pytest.fixture() def my_fixture(pytestconfig): # call the hook called "pytest_my_hook" - # `result` will be a list of return values from all registered functions. + # 'result' will be a list of return values from all registered functions. result = pytestconfig.hook.pytest_my_hook(config=pytestconfig) .. note:: |