You might want to restrict sockets to during tests to ensure network calls are prevented. There's a plugin for pytest to do this, called pytest_socket. The microsoft ...