pact-python icon indicating copy to clipboard operation
pact-python copied to clipboard

Python version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.

Results 126 pact-python issues
Sort by recently updated
recently updated
newest added

In message_pact.py we have: ```python def write_to_pact_file(self): """ Create a pact file based on provided attributes in DSL. Return 0 if success, 1 otherwise. :rtype: int """ command = [...

The following command(s) ``` pact = Consumer('Consumer').has_pact_with(Provider('Provider')) pact.start_service() atexit.register(pact.stop_service) ``` Cause the following errors `requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=1234): Max retries exceeded with url: / (Caused by NewConnectionError(': Failed to establish a...

hi,I am using pact-python,version 1.5.0.When generating pact json files,it shows like:' ``` D:/python/Lib/site-packages/pact/bin/pact/lib/ruby/lib/ruby/2.2.0/logger.rb:513: warning: failed to load encoding (CP936); use ASCII-8BIT instead D:/python/Lib/site-packages/pact/bin/pact/lib/ruby/lib/ruby/2.2.0/logger.rb:513: warning: failed to load encoding (CP936); use...

The fastapi example (and perhaps the others) are a little misleading to newbies. The following [lines](https://github.com/pact-foundation/pact-python/blob/master/examples/fastapi_e2e/tests/provider/test_provider.py#L23-L25) would suggest that there is pact mock on the provider side, when in reality...

help wanted
good first issue
documentation
hacktoberfest

Hi, I see that when calling the webhook setup state call, I receive this in the body of the POST call: ~~~python { "consumer": "Consumer", "state": "User exists and has...

![image](https://user-images.githubusercontent.com/67024357/152425675-92afa18a-40b7-42eb-9095-3ddc868c944d.png) I expect that if a provider state fails to setup and that URL returns a 500, I would expect the verifier test to have failed/erred due to being unable...

type:bug

I'm trying to find an example for someone because I'm not familiar with the python CLI/API and I can't find one anywhere!

The `README` says you currently support V2 of the spec, please support [V3](https://github.com/pact-foundation/pact-specification/tree/version-3#version-30) as well.

enhancement
help wanted
question
ready