[Python] Mocking an Http connection in python

Discussão em 'Python' iniciado por Stack, Março 4, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to mock an http connection to test some of my python code. I was wondering how this is achieved. I need the mock class to return data store in a json object when requested. I am trying to figure out how to place the data and create a mock http request in order to obtain it and modify it through posts need be.

    Any pointers and small examples are appreciated.

    Please and thank you.

    Continue reading...

Compartilhe esta Página