+++ /dev/null
-# ==================================================================================
-#
-# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# ==================================================================================
from os import getenv
from threading import Lock
-from .tmgr_logger import TMLogger
+from tmgr_logger import TMLogger
TRAINING_DICT = {}
LOCK = Lock()
self.kf_dict = {}
self.trainingmgr_dict = {}
- self.tmgr_logger = TMLogger("config/log_config.yaml")
+ self.tmgr_logger = TMLogger("../config/log_config.yaml")
self.logger = self.tmgr_logger.logger
self.run_status_polling_interval_sec = 20
"""
import kfp
-from .kfadapter_util import random_suffix
-from .kfadapter_conf import KfConfiguration
+from kfadapter_util import random_suffix
+from kfadapter_conf import KfConfiguration
class KfConnect:
"""
from flask_api import status
import kfp_server_api
-from . import kfadapter_conf
-from .kfadapter_kfconnect import KfConnect
-from .kfadapter_util import BadRequest, wait_status_thread, keys_match, check_map
+import kfadapter_conf
+from kfadapter_kfconnect import KfConnect
+from kfadapter_util import BadRequest, wait_status_thread, keys_match, check_map
#Handles to Config and Kubeflow
KFCONNECT_CONFIG_OBJ = None
from flask_api import status
+import kfadapter_conf
+
class BadRequest(Exception):
"""
This is a class for throwing custom exception when local error occurs
class Test_tmgr_logger:
def setup_method(self):
- self.TMGR_LOGGER_OBJ = TMLogger("config/log_config.yaml")
+ self.TMGR_LOGGER_OBJ = TMLogger("../config/log_config.yaml")
def test_get_loglevel(self):
ret = self.TMGR_LOGGER_OBJ.get_logLevel
#!/bin/bash
-python3 -m pytest
+python3 -m pytest ../test