pytest-socket is a plugin to use with Pytest to disable or restrict socket calls during tests to ensure network calls are prevented.