in src/es_pii_tool/helpers/utils.py [0:0]
def timing(kind: str) -> t.Tuple:
"""
Return a tuple of two floats: the pause value and the timeout value
:param kind: The kind of timing to do
:type kind: str
:returns: A tuple of two floats
:rtype: tuple
"""
is_test = environ.get('PII_TOOL_TESTING', 'False') == 'True'
pause = 1.0 if is_test else PAUSE_DEFAULT # Default values to be overridden
timeout = 30.0 if is_test else TIMEOUT_DEFAULT # Default values to be overridden
testkey = 'testing' if is_test else 'default'
pause = TIMINGS[kind]['pause'][testkey]
timeout = TIMINGS[kind]['timeout'][testkey]
# logger.debug(
# f'kind = {kind}, TESTING = {testing}, PAUSE = {pause}, TIMEOUT = {timeout}'
# )
return pause, timeout