Skip to content

Commit 100c8de

Browse files
Fix various typos in fixture docs
1 parent 275174e commit 100c8de

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/en/fixture.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ Fixtures are reusable
375375
^^^^^^^^^^^^^^^^^^^^^
376376

377377
One of the things that makes pytest's fixture system so powerful, is that it
378-
gives us the abilty to define a generic setup step that can reused over and
378+
gives us the ability to define a generic setup step that can reused over and
379379
over, just like a normal function would be used. Two different tests can request
380380
the same fixture and have pytest give each test their own result from that
381381
fixture.
@@ -902,7 +902,7 @@ attempt to tear them down as it normally would.
902902
2. Adding finalizers directly
903903
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
904904

905-
While yield fixtures are considered to be the cleaner and more straighforward
905+
While yield fixtures are considered to be the cleaner and more straightforward
906906
option, there is another choice, and that is to add "finalizer" functions
907907
directly to the test's `request-context`_ object. It brings a similar result as
908908
yield fixtures, but requires a bit more verbosity.
@@ -1026,7 +1026,7 @@ making one state-changing action each, and then bundling them together with
10261026
their teardown code, as :ref:`the email examples above <yield fixtures>` showed.
10271027

10281028
The chance that a state-changing operation can fail but still modify state is
1029-
neglibible, as most of these operations tend to be `transaction`_-based (at
1029+
negligible, as most of these operations tend to be `transaction`_-based (at
10301030
least at the level of testing where state could be left behind). So if we make
10311031
sure that any successful state-changing action gets torn down by moving it to a
10321032
separate fixture function and separating it from other, potentially failing
@@ -1124,7 +1124,7 @@ never have been made.
11241124
.. _`conftest.py`:
11251125
.. _`conftest`:
11261126

1127-
Fixture availabiility
1127+
Fixture availability
11281128
---------------------
11291129

11301130
Fixture availability is determined from the perspective of the test. A fixture
@@ -1410,9 +1410,9 @@ pytest doesn't know where ``c`` should go in the case, so it should be assumed
14101410
that it could go anywhere between ``g`` and ``b``.
14111411

14121412
This isn't necessarily bad, but it's something to keep in mind. If the order
1413-
they execute in could affect the behavior a test is targetting, or could
1413+
they execute in could affect the behavior a test is targeting, or could
14141414
otherwise influence the result of a test, then the order should be defined
1415-
explicitely in a way that allows pytest to linearize/"flatten" that order.
1415+
explicitly in a way that allows pytest to linearize/"flatten" that order.
14161416

14171417
.. _`autouse order`:
14181418

@@ -1506,7 +1506,7 @@ of what we've gone over so far.
15061506

15071507
All that's needed is stepping up to a larger scope, then having the **act**
15081508
step defined as an autouse fixture, and finally, making sure all the fixtures
1509-
are targetting that highler level scope.
1509+
are targeting that higher level scope.
15101510

15111511
Let's pull :ref:`an example from above <safe fixture structure>`, and tweak it a
15121512
bit. Let's say that in addition to checking for a welcome message in the header,
@@ -1777,7 +1777,7 @@ Parametrizing fixtures
17771777
-----------------------------------------------------------------
17781778

17791779
Fixture functions can be parametrized in which case they will be called
1780-
multiple times, each time executing the set of dependent tests, i. e. the
1780+
multiple times, each time executing the set of dependent tests, i.e. the
17811781
tests that depend on this fixture. Test functions usually do not need
17821782
to be aware of their re-running. Fixture parametrization helps to
17831783
write exhaustive functional tests for components which themselves can be

0 commit comments

Comments
 (0)