Test 03 Message Provider¶
Producer test of example message.
This test will read a pact between the message handler and the message provider and then validate the pact against the provider.
Attributes¶
CURRENT_STATE: str | None = None
module-attribute
¶
PACT_DIR = Path(__file__).parent.parent.parent / 'pacts'.resolve()
module-attribute
¶
responses: dict[str, dict[str, str]] = {'a request to write test.txt': {'function_name': 'send_write_event'}, 'a request to read test.txt': {'function_name': 'send_read_event'}}
module-attribute
¶
Classes¶
Functions¶
message_producer_function() -> tuple[str, str]
¶
Source code in examples/tests/v3/test_03_message_provider.py
state_provider_function(state_name: str) -> None
¶
test_producer() -> None
¶
Test the message producer.