django-planet
July 6, 2025

Disable network requests when running Pytest

published by Anže Pečar
in blog Anže’s Blog
original entry Disable network requests when running Pytest

Even though my team has been diligent with mocking external requests, a few web requests still managed to slip through after a few months of cranking out new features. We only noticed them when our tests started to fail. 🫣