ImEgg
Explore posts from serversTTCTheo's Typesafe Cult
•Created by ImEgg on 2/23/2024 in #questions
Integration Testing for APIs that interact with a Third-Party System
I have built an API (using FastAPI) where it's only job is to collect data from a Third-Party System via Webhooks, process that data then store it into my MySQL DB using prisma.
from these Events that get sent to my API from this external system, depending on the event, I have a series of API requests back to this Third-Party System to actually gather the data that is a part of that specific event from that system (don't ask why that data isn't just present in the webhook event data, I have no idea.)
That being said, I'm trying to move forward with building out a testing framework (using pytest) to make sure that everything works and continues to work.
I'm having issues understanding how to go about doing this so I'm hoping someone could break down where my thinking is going wrong and help better explain things for my specific scenario
(in comments... too many words)
Totally understand there's a lot to read here. If it's just one bullet point you respond to, even that would be super helpful. Thank you for your time!!
4 replies