From 22da7e9bd9537fdb924db6b8331fd9deecb7bd8f Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Fri, 27 Dec 2024 14:20:13 -0800 Subject: [PATCH] Cleanup changes --- neon_utils/hana_utils.py | 3 ++- tests/hana_util_tests.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/neon_utils/hana_utils.py b/neon_utils/hana_utils.py index e5e7ecc5..42c91d7d 100644 --- a/neon_utils/hana_utils.py +++ b/neon_utils/hana_utils.py @@ -78,7 +78,8 @@ def _init_client(backend_address: str): """ global _client_config global _headers - # TODO: Config on disk could be invalid here! + # TODO: Config on disk could be invalid here; consider validating tokens now + # instead of waiting for exception handling with a failed request if not _client_config: client_config_path = _get_client_config_path(backend_address) if isfile(client_config_path): diff --git a/tests/hana_util_tests.py b/tests/hana_util_tests.py index e4de3375..278c998d 100644 --- a/tests/hana_util_tests.py +++ b/tests/hana_util_tests.py @@ -31,7 +31,7 @@ from os import remove from os.path import join, dirname, isfile -from shutil import move, copy +from shutil import copy from time import time from unittest.mock import patch