Skip to content

Commit

Permalink
enhance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Aug 30, 2024
1 parent c36bd09 commit ba76f20
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ba76f20

Please sign in to comment.