Stub web requests in tests