1 post tagged “mocking”.
I wrote this test to exercise some httpx code today, using pytest-mock. The key was to use which patches the module that was imported by the module.