diff --git a/doc/en/fixture.rst b/doc/en/fixture.rst index 333383d65..91b5aca85 100644 --- a/doc/en/fixture.rst +++ b/doc/en/fixture.rst @@ -315,15 +315,15 @@ Consider the code below: .. literalinclude:: example/fixtures/test_fixtures_order.py -The fixtures requested by ``test_foo`` will be instantiated in the following order: +The fixtures requested by ``test_order`` will be instantiated in the following order: 1. ``s1``: is the highest-scoped fixture (``session``). 2. ``m1``: is the second highest-scoped fixture (``module``). 3. ``a1``: is a ``function``-scoped ``autouse`` fixture: it will be instantiated before other fixtures within the same scope. 4. ``f3``: is a ``function``-scoped fixture, required by ``f1``: it needs to be instantiated at this point -5. ``f1``: is the first ``function``-scoped fixture in ``test_foo`` parameter list. -6. ``f2``: is the last ``function``-scoped fixture in ``test_foo`` parameter list. +5. ``f1``: is the first ``function``-scoped fixture in ``test_order`` parameter list. +6. ``f2``: is the last ``function``-scoped fixture in ``test_order`` parameter list. .. _`finalization`: diff --git a/doc/en/monkeypatch.rst b/doc/en/monkeypatch.rst index a38f07e79..1d1bd68c0 100644 --- a/doc/en/monkeypatch.rst +++ b/doc/en/monkeypatch.rst @@ -50,7 +50,7 @@ these patches. :py:meth:`monkeypatch.chdir` to change the context of the current working directory during a test. -5. Use py:meth:`monkeypatch.syspath_prepend` to modify ``sys.path`` which will also +5. Use :py:meth:`monkeypatch.syspath_prepend` to modify ``sys.path`` which will also call :py:meth:`pkg_resources.fixup_namespace_packages` and :py:meth:`importlib.invalidate_caches`. See the `monkeypatch blog post`_ for some introduction material