Skip to content

Commit 7736272

Browse files
committed
docs(example): elaborate on state handler
1 parent 8672fd9 commit 7736272

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/tests/v3/test_01_fastapi_provider.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ def provider_state_handler(
170170
also be used to reset the mock, or in the case were a real database is used,
171171
to clean up any side effects.
172172
173+
This example showcases how a _full_ provider state handler can be
174+
implemented. The handler can also be specified through a mapping of provider
175+
states to functions. See the documentation of the
176+
[`state_handler`][pact.v3.Verifier.state_handler] method for more details.
177+
173178
Args:
174179
action:
175180
One of `setup` or `teardown`. Determines whether the provider state

0 commit comments

Comments
 (0)