From 69d49f18e900cc9127da3f306ed353fe7ca98083 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 1 Mar 2018 17:55:45 -0300 Subject: [PATCH] Add pytest_addhooks --- doc/en/reference.rst | 1 + doc/en/writing_plugins.rst | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/en/reference.rst b/doc/en/reference.rst index b30d0205234..6637ceb1ff8 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -497,6 +497,7 @@ Initialization hooks Initialization hooks called for plugins and ``conftest.py`` files. .. autofunction:: pytest_addoption +.. autofunction:: pytest_addhooks .. autofunction:: pytest_configure .. autofunction:: pytest_unconfigure diff --git a/doc/en/writing_plugins.rst b/doc/en/writing_plugins.rst index 33a362a8ae8..dab88da2253 100644 --- a/doc/en/writing_plugins.rst +++ b/doc/en/writing_plugins.rst @@ -543,6 +543,7 @@ implemented by other plugins in order to alter behaviour or interact with the new plugin: .. autofunction:: pytest_addhooks + :noindex: Hooks are usually declared as do-nothing functions that contain only documentation describing when the hook will be called and what return values