Skip to content

Commit 3c4359b

Browse files
committed
docs: fix minor typos
Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 183841a commit 3c4359b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/tests/test_01_provider_fastapi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def mock_pact_provider_states(
5858
"""
5959
Define the provider state.
6060
61-
For Pact to be able to correctly tests compliance with the contract, the
61+
For Pact to be able to correctly test compliance with the contract, the
6262
internal state of the provider needs to be set up correctly. Naively, this
6363
would be achieved by setting up the database with the correct data for the
6464
test, but this can be slow and error-prone. Instead this is best achieved by

examples/tests/test_01_provider_flask.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def mock_pact_provider_states() -> dict[str, str | None]:
4848
"""
4949
Define the provider state.
5050
51-
For Pact to be able to correctly tests compliance with the contract, the
51+
For Pact to be able to correctly test compliance with the contract, the
5252
internal state of the provider needs to be set up correctly. Naively, this
5353
would be achieved by setting up the database with the correct data for the
5454
test, but this can be slow and error-prone. Instead this is best achieved by

examples/tests/v3/test_01_fastapi_provider.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
side effects, the provider's database calls are mocked out using functionalities
1919
from `unittest.mock`.
2020
21-
Note that Pact requires tat the provider be running on an accessible URL. This
21+
Note that Pact requires that the provider be running on an accessible URL. This
2222
means that FastAPI's [`TestClient`][fastapi.testclient.TestClient] cannot be used
2323
to test the provider. Instead, the provider is run in a separate thread using
2424
Python's [`Thread`][threading.Thread] class.
@@ -151,7 +151,7 @@ def provider_state_handler(
151151
"""
152152
Handler for the provider state callback.
153153
154-
For Pact to be able to correctly tests compliance with the contract, the
154+
For Pact to be able to correctly test compliance with the contract, the
155155
internal state of the provider needs to be set up correctly. For example, if
156156
the consumer expects a user to exist in the database, the provider needs to
157157
have a user with the given ID in the database.

0 commit comments

Comments
 (0)