Skit
❔ Writting tests for api calls
but isn't this different in the case of integration tests than the docs you provided?
Because like i mentioned before, before i run a GET/UPDATE/DELETE test i would have to make sure the POST ran successfully else there is nothing to GET/UPDATE/DELETE.
should the POST be in a class fixture? but wouldn't it have to be tested before?
18 replies
❔ Writting tests for api calls
i think i explained it wrong. To be more specific. I use the azure dev ops api provided by microsoft.
My code creates (POST) a personal access token and can also GET them for example.
Now i want to write an integration? test for it by using the real api calls.
But before i can GET a token i would have to make sure there is one first (POST).
My question is, if i have a test that does the POST. Can't i use the response from that one for the GET test?
18 replies