From ba76f20026e32be6dfebc01da33a7f23dd9d7436 Mon Sep 17 00:00:00 2001 From: JGStew Date: Thu, 29 Aug 2024 21:06:22 -0400 Subject: [PATCH] enhance tests --- tests/tests.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/tests.py b/tests/tests.py index 2c8b371..05d7e31 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -164,10 +164,13 @@ class RequestResult(object): import logging logging_config = besapi.plugin_utilities.get_plugin_logging_config("./tests.log") -# logging.basicConfig(**logging_config) -# logging.warning("Just testing to see if logging is working!") +# this use of logging.basicConfig requires python >= 3.9 +if sys.version_info >= (3, 9): + logging.basicConfig(**logging_config) -# assert os.path.isfile("./tests.log") + logging.warning("Just testing to see if logging is working!") + + assert os.path.isfile("./tests.log") sys.exit(0)