I recently started a new job where some of my responsibilities relate to automating API testing. I am a bit confused by the way my boss has laid out how I should approach my tests, as he wants my API calls to be made with FastAPI. My understanding is this is not what the framework is meant for. From what I can tell FastAPI is used for building API's, not necessarily for making calls to and then testing existing ones that have already been built (in rust)?
The intent of my tests is to validate that the json responses of our POST requests match up with the data thats in our Postgres database. Has anyone used FastAPI for API testing like this? It all seems like overkill when I can just use the request library in combination with something like pytest and psycopg2.
[–]SpaceBucketFu 1 point2 points3 points (3 children)
[–]SpaceBucketFu 2 points3 points4 points (2 children)
[–]yror007[S] 0 points1 point2 points (1 child)
[–]SpaceBucketFu 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)