--- /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.
+#
+# ==================================================================================
+#
+import pytest
+
+from trainingmgr.common.tmgr_logger import TMLogger
+
+def pytest_configure():
+ pytest.logger = TMLogger("tests/common/conf_log.yaml").logger
+
# ==================================================================================
-# Copyright (c) 2022 Nordix
+#
+# 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.
# 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.
+#
# ==================================================================================
#
-
[tox]
envlist = code
skipsdist = true
commands =
pip3 install {toxinidir}
- git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/sdk/feature-store"
- git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/sdk/model-storage"
+ git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/sdk/feature-store" /tmp/fssdk/
+ git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/sdk/model-storage" /tmp/modelsdk/
- pip3 install feature-store/.
- pip3 install model-storage/.
+ pip3 install /tmp/fssdk/.
+ pip3 install /tmp/modelsdk/.
pytest --cov {toxinidir}/trainingmgr --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=10 --junitxml=/tmp/tests.xml
coverage xml -i
\ No newline at end of file