[Python] How can I create a simulated integration test, without requesting the API?

Discussão em 'Python' iniciado por Stack, Fevereiro 10, 2025.

  1. Stack

    Stack Membro Participativo

    I need to fix the code of an old employee who no longer works for my company. I've already made changes and unit tests that worked well. My problem lies with the integration tests.

    I need to create an integration test for my code, but it has to be a simulated test, because I am not able to make real requests to the API.

    For the integrated tests I cannot use mock to simulate the values of the API, and it would be necessary to create a simulated server to perform the integrated tests while I cannot access the API. I am only allowed to access the API and test with it after all the mock tests are working.

    So, how can I create a simulated integration test, without requesting the API?

    Continue reading...

Compartilhe esta Página