name: code run_id: commands[1] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/aiml-fw-athp-sdk-model-storage-pypi-verify-master/.tox/code/bin:/opt/pyenv/bin:/tmp/venv-iTrQ/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/home/jenkins/.gem/ruby/2.6.0/bin:/opt/go/1.19/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PIP_USER: 0 env PYTHONHASHSEED: 3983773688 env PYTHONIOENCODING: utf-8 env SSH_AGENT_PID: 2020 env SSH_AUTH_SOCK: ******************************** env TOX_ENV_DIR: /w/workspace/aiml-fw-athp-sdk-model-storage-pypi-verify-master/.tox/code env TOX_ENV_NAME: code env TOX_WORK_DIR: /w/workspace/aiml-fw-athp-sdk-model-storage-pypi-verify-master/.tox env VIRTUAL_ENV: /w/workspace/aiml-fw-athp-sdk-model-storage-pypi-verify-master/.tox/code env __TOX_ENVIRONMENT_VARIABLE_ORIGINAL_CI: true metadata pid: 2844 cwd: /w/workspace/aiml-fw-athp-sdk-model-storage-pypi-verify-master allow: /w/workspace/aiml-fw-athp-sdk-model-storage-pypi-verify-master/.tox/code/bin/* cmd: pytest --cov-report term-missing --cov-report xml --cov-report html --cov-fail-under=30 --junitxml=/tmp/tests.xml --cov=/w/workspace/aiml-fw-athp-sdk-model-storage-pypi-verify-master/modelmetricsdk/ exit_code: 1 ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-9.0.3, pluggy-1.6.0 cachedir: .tox/code/.pytest_cache rootdir: /w/workspace/aiml-fw-athp-sdk-model-storage-pypi-verify-master configfile: pyproject.toml plugins: cov-7.1.0 collected 22 items test/test_model_metrics_sdk.py EEEEEEEEEEEEEEEEEEEEEE ERROR: Coverage failure: total of 12 is less than fail-under=30 [100%] ==================================== ERRORS ==================================== ______________ ERROR at setup of Test_model_metrics_sdk.test_init ______________ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError __________ ERROR at setup of Test_model_metrics_sdk.test_upload_model __________ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _______ ERROR at setup of Test_model_metrics_sdk.test_upload_model_case2 _______ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _____ ERROR at setup of Test_model_metrics_sdk.test_negative_upload_model ______ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _________ ERROR at setup of Test_model_metrics_sdk.test_upload_metrics _________ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _ ERROR at setup of Test_model_metrics_sdk.test_negative_upload_metrics_tm_connection_error _ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError __________ ERROR at setup of Test_model_metrics_sdk.test_get_metrics ___________ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _ ERROR at setup of Test_model_metrics_sdk.test_negative_get_metrics_tm_connection_error _ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _________ ERROR at setup of Test_model_metrics_sdk.test_get_model_zip __________ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError ______ ERROR at setup of Test_model_metrics_sdk.test_get_model_zip_case2 _______ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _____ ERROR at setup of Test_model_metrics_sdk.test_negative_get_model_zip _____ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError ______ ERROR at setup of Test_model_metrics_sdk.test_delete_model_metric _______ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError ___ ERROR at setup of Test_model_metrics_sdk.test_delete_model_metric_case2 ____ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError __ ERROR at setup of Test_model_metrics_sdk.test_negative_delete_model_metric __ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError __________ ERROR at setup of Test_model_metrics_sdk.test_check_object __________ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _ ERROR at setup of Test_model_metrics_sdk.test_check_object_when_not_present __ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _____ ERROR at setup of Test_model_metrics_sdk.test_negative_check_object ______ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _______ ERROR at setup of Test_model_metrics_sdk.test_is_bucket_present ________ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _ ERROR at setup of Test_model_metrics_sdk.test_is_bucket_present_when_bucket_is_not_present _ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError ___ ERROR at setup of Test_export_model.test_export_model_creates_zip_in_cwd ___ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _ ERROR at setup of Test_export_model.test_export_model_without_version_folder _ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError _ ERROR at setup of Test_export_model.test_export_model_overwrites_existing_zip _ args = (, >) keywargs = {} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): .tox/code/lib/python3.10/site-packages/mock/mock.py:1465: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:135: in __enter__ return next(self.gen) .tox/code/lib/python3.10/site-packages/mock/mock.py:1447: in decoration_helper arg = exit_stack.enter_context(patching) /opt/pyenv/versions/3.10.6/lib/python3.10/contextlib.py:492: in enter_context result = _cm_type.__enter__(cm) .tox/code/lib/python3.10/site-packages/mock/mock.py:1523: in __enter__ self.target = self.getter() .tox/code/lib/python3.10/site-packages/mock/mock.py:1719: in getter = lambda: _importer(target) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = 'pkg_resources' def _importer(target): components = target.split('.') import_path = components.pop(0) > thing = __import__(import_path) E ModuleNotFoundError: No module named 'pkg_resources' .tox/code/lib/python3.10/site-packages/mock/mock.py:1345: ModuleNotFoundError ---------------------- generated xml file: /tmp/tests.xml ---------------------- ================================ tests coverage ================================ _______________ coverage: platform linux, python 3.10.6-final-0 ________________ Name Stmts Miss Cover Missing ----------------------------------------------------------------------- modelmetricsdk/__init__.py 0 0 100% modelmetricsdk/adapters/__init__.py 0 0 100% modelmetricsdk/adapters/base_adapter.py 11 11 0% 18-94 modelmetricsdk/adapters/s3_adapter.py 61 61 0% 18-171 modelmetricsdk/artifact_manager.py 26 26 0% 18-99 modelmetricsdk/model_metrics_sdk.py 192 168 12% 43-47, 59-63, 80-134, 145-165, 177-199, 210-233, 246-273, 286-304, 315-323, 339-363 modelmetricsdk/sdk_exception.py 4 2 50% 27-28 modelmetricsdk/singleton_manager.py 40 25 38% 43-45, 49-81, 88, 95 modelmetricsdk/storage_factory.py 7 7 0% 18-53 ----------------------------------------------------------------------- TOTAL 341 300 12% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml FAIL Required test coverage of 30% not reached. Total coverage: 12.02% =========================== short test summary info ============================ ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_init - Mod... ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_upload_model ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_upload_model_case2 ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_negative_upload_model ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_upload_metrics ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_negative_upload_metrics_tm_connection_error ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_get_metrics ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_negative_get_metrics_tm_connection_error ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_get_model_zip ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_get_model_zip_case2 ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_negative_get_model_zip ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_delete_model_metric ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_delete_model_metric_case2 ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_negative_delete_model_metric ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_check_object ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_check_object_when_not_present ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_negative_check_object ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_is_bucket_present ERROR test/test_model_metrics_sdk.py::Test_model_metrics_sdk::test_is_bucket_present_when_bucket_is_not_present ERROR test/test_model_metrics_sdk.py::Test_export_model::test_export_model_creates_zip_in_cwd ERROR test/test_model_metrics_sdk.py::Test_export_model::test_export_model_without_version_folder ERROR test/test_model_metrics_sdk.py::Test_export_model::test_export_model_overwrites_existing_zip ============================= 22 errors in 16.41s ==============================