Skip to content

Commit 0215bcd

Browse files
authored
update doc (#5784)
update doc
2 parents 9859d37 + 01b9774 commit 0215bcd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/en/fixture.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,15 @@ Consider the code below:
315315

316316
.. literalinclude:: example/fixtures/test_fixtures_order.py
317317

318-
The fixtures requested by ``test_foo`` will be instantiated in the following order:
318+
The fixtures requested by ``test_order`` will be instantiated in the following order:
319319

320320
1. ``s1``: is the highest-scoped fixture (``session``).
321321
2. ``m1``: is the second highest-scoped fixture (``module``).
322322
3. ``a1``: is a ``function``-scoped ``autouse`` fixture: it will be instantiated before other fixtures
323323
within the same scope.
324324
4. ``f3``: is a ``function``-scoped fixture, required by ``f1``: it needs to be instantiated at this point
325-
5. ``f1``: is the first ``function``-scoped fixture in ``test_foo`` parameter list.
326-
6. ``f2``: is the last ``function``-scoped fixture in ``test_foo`` parameter list.
325+
5. ``f1``: is the first ``function``-scoped fixture in ``test_order`` parameter list.
326+
6. ``f2``: is the last ``function``-scoped fixture in ``test_order`` parameter list.
327327

328328

329329
.. _`finalization`:

doc/en/monkeypatch.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ these patches.
5050
:py:meth:`monkeypatch.chdir` to change the context of the current working directory
5151
during a test.
5252

53-
5. Use py:meth:`monkeypatch.syspath_prepend` to modify ``sys.path`` which will also
53+
5. Use :py:meth:`monkeypatch.syspath_prepend` to modify ``sys.path`` which will also
5454
call :py:meth:`pkg_resources.fixup_namespace_packages` and :py:meth:`importlib.invalidate_caches`.
5555

5656
See the `monkeypatch blog post`_ for some introduction material

0 commit comments

Comments
 (0)