diff --git a/tests/tests.py b/tests/tests.py index 912dac5..6f5ca49 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -155,10 +155,19 @@ class RequestResult(object): # test plugin_utilities: print(besapi.plugin_utilities.get_invoke_folder()) print(besapi.plugin_utilities.get_invoke_file_name()) -# the following doesn't seem to work in python 3.7: -logging_config = besapi.plugin_utilities.get_plugin_logging_config() + parser = besapi.plugin_utilities.setup_plugin_argparse(plugin_args_required=False) # allow unknown args to be parsed instead of throwing an error: args, _unknown = parser.parse_known_args() +# test logging plugin_utilities: +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!") + +assert os.path.isfile("./tests.log") + sys.exit(0)