Bram Hautekiet
01/22/2023, 11:00 PMresponse = test_client.get()
, response = <http://test_client.post|test_client.post>()
, ...
Using this test client has some advantages compared to running a local server: it's faster, it makes it easier to mock dependent services (like databases), it makes it very easy to deal with authentication etc...
But as far as I can see the only way of verifying a provider contract is with the standalone pact-verifier tool (or a wrapper around the tool), where you need to pass a provider-base-url which points to a live server?Matt (pactflow.io / pact-js / pact-go)
pact-python
would need to start an HTTP server and route traffic to the flask test client (so it will always need an HTTP endpoint, just whether or not pact-python
provides it, or the user)