Skip to content

Commit 94e2db7

Browse files
committed
refactor(v3): split interactions into modules
The `pact` module was getting a little crowded. As a result, the following classes have been split into their own modules: - `Interaction` -> `interaction/__init__.py` - `HttpInteraction` -> `interaction/http_interaction.py` - `SyncMessageInteraction` -> `interaction/sync_message_interaction.py` - `AsyncMessageInteraction` -> `interaction/async_message_interaction.py` I am also removing the exporting of `Interaction` within the root `pact.v3` module, as end-users should never be instantiating interactions directly. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent de7c955 commit 94e2db7

6 files changed

+1638
-931
lines changed

src/pact/v3/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
considered deprecated, and will be removed in a future release.
2121
"""
2222

23-
from pact.v3.pact import Interaction, Pact
23+
from pact.v3.pact import Pact
2424

2525
__all__ = [
2626
"Pact",
27-
"Interaction",
2827
]

0 commit comments

Comments
 (0)