code: install_deps> python -I -m pip install coverage pytest pytest-cov six .pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel .pkg: _optional_hooks> python /tmp/venv-zfAR/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_sdist> python /tmp/venv-zfAR/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_wheel> python /tmp/venv-zfAR/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: install_requires_for_build_wheel> python -I -m pip install wheel .pkg: freeze> python -m pip freeze --all .pkg: pip==23.3.1,setuptools==69.0.2,wheel==0.42.0 .pkg: prepare_metadata_for_build_wheel> python /tmp/venv-zfAR/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_sdist> python /tmp/venv-zfAR/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ code: install_package_deps> python -I -m pip install inotify inotify-simple mdclogpy msgpack 'protobuf<3.21.0' requests 'ricsdl<4.0.0,>=3.0.0' code: install_package> python -I -m pip install --force-reinstall --no-deps /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.tox/.tmp/package/1/ricxappframe-3.2.2.tar.gz code: freeze> python -m pip freeze --all code: async-timeout==4.0.3,certifi==2023.11.17,charset-normalizer==3.3.2,coverage==7.4.0,exceptiongroup==1.2.0,hiredis==2.0.0,idna==3.6,iniconfig==2.0.0,inotify==0.2.10,inotify-simple==1.3.5,mdclogpy==1.1.4,msgpack==1.0.7,nose==1.3.7,packaging==23.2,pip==23.3.1,pluggy==1.3.0,protobuf==3.20.3,pytest==7.4.3,pytest-cov==4.1.0,redis==4.3.6,requests==2.31.0,ricsdl==3.1.3,ricxappframe @ file:///w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.tox/.tmp/package/1/ricxappframe-3.2.2.tar.gz#sha256=c91874e6c95f56ecafa3c6cb91222c2859ffbf1894de58898aa449163cde41d5,setuptools==69.0.2,six==1.16.0,tomli==2.0.1,urllib3==2.1.0,wheel==0.42.0 code: commands[0]> pytest --cov ricxappframe --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 --junitxml=/tmp/tests.xml ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-7.4.3, pluggy-1.3.0 cachedir: .tox/code/.pytest_cache rootdir: /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master plugins: cov-4.1.0 collected 75 items tests/test_Logger.py .............. [ 18%] tests/test_alarm.py .. [ 21%] tests/test_config.py ... [ 25%] tests/test_e2ap.py ........ [ 36%] tests/test_init.py ... [ 40%] tests/test_metric.py .. [ 42%] tests/test_rest.py . [ 44%] tests/test_rmr.py ............. [ 61%] tests/test_rmr_mocks.py ... [ 65%] tests/test_rmrclib.py .. [ 68%] tests/test_sdl.py ..... [ 74%] tests/test_subscribe.py .... [ 80%] tests/test_symptomdata.py .... [ 85%] tests/test_xapps.py ........... [100%] =============================== warnings summary =============================== tests/test_init.py::test_init_general_xapp /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.tox/code/lib/python3.10/site-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-11 (loop) Traceback (most recent call last): File "/w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/ricxappframe/xapp_frame.py", line 952, in loop with open(self._config_path) as json_file: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/file.json' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/pyenv/versions/3.10.6/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/opt/pyenv/versions/3.10.6/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/ricxappframe/xapp_frame.py", line 958, in loop raise XappError(f"Error occurred during polling configuration handler: {error}") ricxappframe.xapp_frame.XappError: Error occurred during polling configuration handler: [Errno 2] No such file or directory: '/tmp/file.json' warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------------------- generated xml file: /tmp/tests.xml ---------------------- ---------- coverage: platform linux, python 3.10.6-final-0 ----------- Name Stmts Miss Cover Missing ----------------------------------------------------------------------- ricxappframe/__init__.py 0 0 100% ricxappframe/alarm/__init__.py 0 0 100% ricxappframe/alarm/alarm.py 94 2 98% 250-251 ricxappframe/alarm/exceptions.py 2 0 100% ricxappframe/constants.py 5 0 100% ricxappframe/e2ap/__init__.py 0 0 100% ricxappframe/e2ap/asn1.py 224 0 100% ricxappframe/e2ap/asn1clib/__init__.py 0 0 100% ricxappframe/e2ap/asn1clib/asn1clib.py 2 0 100% ricxappframe/e2ap/asn1clib/types.py 16 0 100% ricxappframe/logger/__init__.py 0 0 100% ricxappframe/logger/mdclogger.py 133 22 83% 83-87, 95, 188-189, 196, 198, 200, 202, 220-224, 227-234 ricxappframe/metric/__init__.py 0 0 100% ricxappframe/metric/exceptions.py 2 0 100% ricxappframe/metric/metric.py 58 3 95% 122, 201-202 ricxappframe/rmr/__init__.py 0 0 100% ricxappframe/rmr/exceptions.py 4 0 100% ricxappframe/rmr/helpers.py 28 0 100% ricxappframe/rmr/rmr.py 156 3 98% 257, 454, 544 ricxappframe/rmr/rmr_mocks/__init__.py 0 0 100% ricxappframe/rmr/rmr_mocks/rmr_mocks.py 78 6 92% 39, 59, 79, 115, 133, 148 ricxappframe/rmr/rmrclib/__init__.py 0 0 100% ricxappframe/rmr/rmrclib/rmrclib.py 38 1 97% 53 ricxappframe/util/__init__.py 0 0 100% ricxappframe/util/constants.py 12 0 100% ricxappframe/xapp_frame.py 279 21 92% 157, 188, 219-221, 245-247, 261, 280-282, 311-312, 342-343, 656-657, 745, 794, 963 ricxappframe/xapp_rest.py 91 12 87% 66, 72-74, 131-132, 142-143, 155-156, 191-193 ricxappframe/xapp_rmr.py 42 1 98% 134 ricxappframe/xapp_sdl.py 94 1 99% 53 ricxappframe/xapp_subscribe.py 54 3 94% 64, 103, 171 ricxappframe/xapp_symptomdata.py 119 20 83% 43, 111-116, 152, 154-156, 160-161, 200-201, 221-224, 228 ----------------------------------------------------------------------- TOTAL 1531 95 94% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 70% reached. Total coverage: 93.79% ======================== 75 passed, 1 warning in 59.81s ======================== code: commands[1]> coverage xml -i Wrote XML report to coverage.xml .pkg: _exit> python /tmp/venv-zfAR/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ code: OK ✔ in 1 minute 20.94 seconds flake8: install_deps> python -I -m pip install flake8 flake8: freeze> python -m pip freeze --all flake8: flake8==6.1.0,mccabe==0.7.0,pip==23.3.1,pycodestyle==2.11.1,pyflakes==3.1.0,setuptools==69.0.2,wheel==0.42.0 flake8: commands[0]> flake8 setup.py ricxappframe tests ricxappframe/xapp_frame.py:25:1: F401 'time' imported but unused ricxappframe/xapp_frame.py:94:1: W293 blank line contains whitespace ricxappframe/xapp_frame.py:153:1: W293 blank line contains whitespace ricxappframe/xapp_frame.py:155:1: W293 blank line contains whitespace ricxappframe/xapp_frame.py:158:1: W293 blank line contains whitespace ricxappframe/xapp_frame.py:181:1: W293 blank line contains whitespace ricxappframe/xapp_frame.py:204:1: W293 blank line contains whitespace ricxappframe/xapp_frame.py:248:1: W293 blank line contains whitespace ricxappframe/xapp_frame.py:782:1: W293 blank line contains whitespace ricxappframe/xapp_frame.py:784:5: E303 too many blank lines (2) ricxappframe/xapp_rmr.py:135:1: W293 blank line contains whitespace tests/conftest.py:20:1: F401 'pytest.MonkeyPatch' imported but unused tests/test_config.py:43:1: E302 expected 2 blank lines, found 1 tests/test_config.py:44:9: E117 over-indented tests/test_config.py:46:1: E302 expected 2 blank lines, found 1 tests/test_xapps.py:19:1: F401 'requests' imported but unused tests/test_xapps.py:70:1: W293 blank line contains whitespace flake8: exit 1 (0.81 seconds) /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master> flake8 setup.py ricxappframe tests pid=28320 code: OK (80.94=setup[16.08]+cmd[64.55,0.30] seconds) flake8: FAIL code 1 (3.01=setup[2.20]+cmd[0.81] seconds) evaluation failed :( (84.11 seconds)