Hi, is there a pattern with the Python pact Verifi...
# pact-python
a
Hi, is there a pattern with the Python pact Verifier to route the requests to a python function instead of
localhost:<port>
?
m
You could maybe try the pact-message approach, the provider is mapped to a handler, essentially the function to call to perform the "request", rather than running a service normally. I don't think the examples currently show much around how to handle arguments etc. What's the scenario, where the normal http endpoint approach doesn't work for you?
a
Our microservices run GraphQL (graphene) through AWS lambda. So running on localhost would rely on using
sam local
which has slow build / run / hot reload times. The routing could be direct to:
Copy code
schema = graphene.Schema(...)
return schema.execute(query, variables)