From 98f3fe9330eb92ca7e633038807b28636ec8d241 Mon Sep 17 00:00:00 2001 From: JGStew Date: Tue, 27 Aug 2024 14:35:10 -0400 Subject: [PATCH] fix isort, fix tests --- src/besapi/plugin_utilities.py | 2 +- tests/tests.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/besapi/plugin_utilities.py b/src/besapi/plugin_utilities.py index 7c4e3d3..80c703b 100644 --- a/src/besapi/plugin_utilities.py +++ b/src/besapi/plugin_utilities.py @@ -1,12 +1,12 @@ """This is a set of utility functions for use in multiple plugins""" import argparse +import getpass import logging import logging.handlers import ntpath import os import sys -import getpass import besapi diff --git a/tests/tests.py b/tests/tests.py index a7745dc..37d506b 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -155,7 +155,8 @@ class RequestResult(object): # test plugin_utilities: print(besapi.plugin_utilities.get_invoke_folder()) print(besapi.plugin_utilities.get_invoke_file_name()) -besapi.plugin_utilities.setup_plugin_logging(console=True) +# the following doesn't seem to work in python 3.7: +# besapi.plugin_utilities.setup_plugin_logging(console=True) 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()