Added tests for utils

This commit is contained in:
Rhet Turnbull
2019-12-27 17:04:23 -08:00
parent e4d700fcff
commit 7905a6c1fe
2 changed files with 49 additions and 0 deletions

View File

@@ -26,6 +26,15 @@ if not _DEBUG:
logging.disable(logging.DEBUG)
def _get_logger():
"""Used only for testing
Returns:
logging.Logger object -- logging.Logger object for osxphotos
"""
return logging.Logger(__name__)
def _debug(debug):
""" Enable or disable debug logging """
if debug: