@@ -349,7 +349,7 @@ will be executed *first* or *last* respectively in the hook call loop:
349
349
# load a plugin defined on a class
350
350
pm.register(SomeOtherPlugin())
351
351
352
- For another example see the ` hook function ordering `_ section of the
352
+ For another example see the :ref: ` pytest:plugin-hookorder ` section of the
353
353
``pytest `` docs.
354
354
355
355
.. note ::
@@ -405,7 +405,7 @@ the final result(s) returned back to the caller using the
405
405
Hook wrappers can **not ** return results (as per generator function
406
406
semantics); they can only modify them using the ``_Result `` API.
407
407
408
- Also see the ` hookwrapper `_ section in the ``pytest `` docs.
408
+ Also see the :ref: ` pytest: hookwrapper ` section in the ``pytest `` docs.
409
409
410
410
.. _specs :
411
411
@@ -523,7 +523,7 @@ then ``None``.
523
523
524
524
This can be useful for optimizing a call loop for which you are only
525
525
interested in a single core *hookimpl *. An example is the
526
- ` pytest_cmdline_main `_ central routine of ``pytest ``.
526
+ :func: ` ~_pytest.hookspec. pytest_cmdline_main ` central routine of ``pytest ``.
527
527
Note that all ``hookwrappers `` are still invoked with the first result.
528
528
529
529
Also see the :ref: `pytest:firstresult ` section in the ``pytest `` docs.
@@ -933,14 +933,8 @@ Table of contents
933
933
934
934
935
935
.. hyperlinks
936
- .. _pytest_cmdline_main :
937
- https://docs.pytest.org/en/latest/_modules/_pytest/hookspec.html#pytest_cmdline_main
938
936
.. _hookspec module :
939
937
https://docs.pytest.org/en/latest/_modules/_pytest/hookspec.html
940
- .. _hookwrapper :
941
- http://doc.pytest.org/en/latest/writing_plugins.html#hookwrapper-executing-around-other-hooks
942
- .. _hook function ordering :
943
- https://doc.pytest.org/en/latest/how-to/writing_hook_functions.html#hook-function-ordering-call-example
944
938
.. _request-response pattern :
945
939
https://en.wikipedia.org/wiki/Request%E2%80%93response
946
940
.. _publish-subscribe :
0 commit comments