Skip to content

Commit

Permalink
feat(v3): implement pact class
Browse files Browse the repository at this point in the history
This (rather large) commit implements core functionality for the `Pact`
class, and the `Interaction` class to handle specific interactions
within a Pact.

This does _not_ implement every method that Pacts and/or interactions
might have (e.g., it is currently not possible to specify a Pact
version). The intent of this commit is to be a minimal working example
which can be improved upon more incrementally.

Signed-off-by: JP-Ellis <josh@jpellis.me>
  • Loading branch information
JP-Ellis committed Oct 10, 2023
1 parent a47c070 commit 9bd36b2
Show file tree
Hide file tree
Showing 6 changed files with 1,785 additions and 287 deletions.
7 changes: 7 additions & 0 deletions pact/v3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@
library is moved to the `pact.v2` scope. The `pact.v2` module will be
considered deprecated, and will be removed in a future release.
"""

from .pact import Interaction, Pact

__all__ = [
"Pact",
"Interaction",
]
Loading

0 comments on commit 9bd36b2

Please sign in to comment.