Skip to content

How to set up an external host for a provider using pact python? #402

Discussion options

You must be logged in to vote

Before I answer, the best way to think of a Pact test is a unit test for your API client. Once you're in this frame of mind, things get a bit easier to understand. Unit tests are easier to reason about - because they are specific, targeted etc. - and give you more control over the test. Pact is a tool that is in contrast to techniques that involve testing live systems, because of the problems (see this series of videos for more on this).

The update_specific_data() function then sends a PUT request to the external specific_data service which is hosted externally, the base url being something like https://specific-data-service.run.app/

In Pact tests (because they are unit tests), you need…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JP-Ellis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants