def _post_teardown(self): """ Disable all mocks after the test. """ if self.mock_requests: responses.reset() responses.stop() patch.stopall()