Skip to content

Commit

Permalink
docs: fix minor typos
Browse files Browse the repository at this point in the history
Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Dec 30, 2024
1 parent 183841a commit 3c4359b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/tests/test_01_provider_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def mock_pact_provider_states(
"""
Define the provider state.
For Pact to be able to correctly tests compliance with the contract, the
For Pact to be able to correctly test compliance with the contract, the
internal state of the provider needs to be set up correctly. Naively, this
would be achieved by setting up the database with the correct data for the
test, but this can be slow and error-prone. Instead this is best achieved by
Expand Down
2 changes: 1 addition & 1 deletion examples/tests/test_01_provider_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def mock_pact_provider_states() -> dict[str, str | None]:
"""
Define the provider state.
For Pact to be able to correctly tests compliance with the contract, the
For Pact to be able to correctly test compliance with the contract, the
internal state of the provider needs to be set up correctly. Naively, this
would be achieved by setting up the database with the correct data for the
test, but this can be slow and error-prone. Instead this is best achieved by
Expand Down
4 changes: 2 additions & 2 deletions examples/tests/v3/test_01_fastapi_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
side effects, the provider's database calls are mocked out using functionalities
from `unittest.mock`.
Note that Pact requires tat the provider be running on an accessible URL. This
Note that Pact requires that the provider be running on an accessible URL. This
means that FastAPI's [`TestClient`][fastapi.testclient.TestClient] cannot be used
to test the provider. Instead, the provider is run in a separate thread using
Python's [`Thread`][threading.Thread] class.
Expand Down Expand Up @@ -151,7 +151,7 @@ def provider_state_handler(
"""
Handler for the provider state callback.
For Pact to be able to correctly tests compliance with the contract, the
For Pact to be able to correctly test compliance with the contract, the
internal state of the provider needs to be set up correctly. For example, if
the consumer expects a user to exist in the database, the provider needs to
have a user with the given ID in the database.
Expand Down

0 comments on commit 3c4359b

Please sign in to comment.