Mocked sockets

This commit is contained in:
zandercymatics 2023-10-17 14:49:42 -06:00
parent d50de8516e
commit d943b69b3d
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 37 additions and 23 deletions

View file

@ -168,7 +168,7 @@ class EPPLibWrapper:
def _create_pool(self, client, login, options):
"""Creates and returns new pool instance"""
return EPPConnectionPool(
client, login, options
client, login, options
)
def start_connection_pool(
@ -190,8 +190,8 @@ class EPPLibWrapper:
# one socket, and if successful, then we know we can connect.
if (
not try_start_if_invalid
and settings.DEBUG
or not self._test_registry_connection_success()
and (settings.DEBUG
or not self._test_registry_connection_success())
):
logger.warning("Cannot contact the Registry")
self.pool_status.connection_success = False