-
As title^ I apologise if this is considered bad GitHub/OSS etiquette - I'm new to the field. I'm basically trying to see if pact-python is valid for my use case. Basically the company I work at is creating a new product, and I have been pushing extremely hard to use pact because our previous products used a combination of integrated tests and playwright, and I despised them as time went on for all the reasons that pact exists now. We will mainly have dotnet micro services, but there will be some python ones too, and we are going for event driven communication (think rabbitmq). The company would like to keep tests written in the same language as the services, which makes sense to me. After all, if a QE goes on leave a dev should still be capable of finishing a task. With that in mind I've made a POC using the handy workshops and demos from pact net, and I can see a lot of info about messaging in pact python. I'm however seeing that in the readme messaging is only available in pact.v3, but in the tests folder we have 'from pact import messaging...' rather than from pact.v3, and there are examples of messaging both in and out of the V3 subfolder. I'm trying to see if we can still work with pact-python in 2.2.1 state for now, if pact.v3 is stable yet (which I believe isn't until pact python v2.3 comes out? According to the tracking issue at least), if there are workarounds to test messaging in the current live version despite pact spec V2 not supporting it, or if we have to scrap pact for the python services until further notice. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Message-pact was introduced in the pact-v3 specification it is available for use the original pact-python package, examples below
It uses pact-message-ruby under the hood and serialises to a 3.0.0 pact spec contract (async messages was only introduced in the pact v3 spec) the the |
Beta Was this translation helpful? Give feedback.
-
Hi! Please don't feel bad about asking the question. The GitHub discussion is certainly the right spot for questions such as yours. As mentioned by @YOU54F, the main I would certainly recommend you take a look at using the The main ways I see
Neither of these should be breaking changes once implemented, but they do unfortunately make the experience right now lower than the standard I would like. I believe @valkolovos is actually interested in this for his own work, and I am curious whether adoption of |
Beta Was this translation helpful? Give feedback.
Message-pact was introduced in the pact-v3 specification
it is available for use the original pact-python package, examples below
It uses pact-message-ruby under the hood and serialises to a 3.0.0 pact spec contract (async messages was only introduced in the pact v3 spec)
the
pact.v3
imports you are referring to, is a rework of pact-python to leverage the pact_ffi core, and async messaging has began to be introduced into pact-pytho…