File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -315,15 +315,15 @@ Consider the code below:
315
315
316
316
.. literalinclude :: example/fixtures/test_fixtures_order.py
317
317
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:
319
319
320
320
1. ``s1 ``: is the highest-scoped fixture (``session ``).
321
321
2. ``m1 ``: is the second highest-scoped fixture (``module ``).
322
322
3. ``a1 ``: is a ``function ``-scoped ``autouse `` fixture: it will be instantiated before other fixtures
323
323
within the same scope.
324
324
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.
327
327
328
328
329
329
.. _`finalization` :
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ these patches.
50
50
:py:meth: `monkeypatch.chdir ` to change the context of the current working directory
51
51
during a test.
52
52
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
54
54
call :py:meth: `pkg_resources.fixup_namespace_packages ` and :py:meth: `importlib.invalidate_caches `.
55
55
56
56
See the `monkeypatch blog post `_ for some introduction material
You can’t perform that action at this time.
0 commit comments