Starting lpci, version 0.2.4 Logging execution to '/home/buildd/.local/state/lpci/log/lpci-20231023-172622.903623.log' Launching environment for focal/amd64 Checking for instance 'lpci-tree-519154-focal-amd64' in project 'lpci' in remote 'local' Instance exists and is not running. Starting instance. Running ['apt', 'update'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease :: Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease :: Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease :: Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease :: Reading package lists... :: Building dependency tree... :: Reading state information... :: 101 packages can be upgraded. Run 'apt list --upgradable' to see them. Installing system packages Running ['apt', 'install', '-y', 'tox'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Reading package lists... :: Building dependency tree... :: Reading state information... :: tox is already the newest version (3.13.2-2). :: 0 upgraded, 0 newly installed, 0 to remove and 101 not upgraded. Running command for the job... Running ['bash', '--noprofile', '--norc', '-ec', 'tox -e unit\n'] :: unit create: /build/lpci/project/.tox/unit :: unit installdeps: pytest, coverage[toml], -r/build/lpci/project/requirements.txt :: unit installed: coverage==7.3.2,exceptiongroup==1.1.3,iniconfig==2.0.0,ops==2.7.0,packaging==23.2,pluggy==1.3.0,pytest==7.4.2,PyYAML==6.0.1,tomli==2.0.1,websocket-client==1.6.4 :: unit run-test-pre: PYTHONHASHSEED='3161412355' :: unit run-test: commands[0] | coverage run --source=/build/lpci/project/src/ -m pytest --ignore=/build/lpci/project/tests/integration -v --tb native -s :: ============================= test session starts ============================== :: platform linux -- Python 3.8.10, pytest-7.4.2, pluggy-1.3.0 -- /build/lpci/project/.tox/unit/bin/python :: cachedir: .tox/unit/.pytest_cache :: rootdir: /build/lpci/project :: configfile: pyproject.toml :: collecting ... collected 18 items :: :: tests/unit/test_charm.py::TestCharm::test_config_changed_attach_failure PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_check_output_returns_bytes PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_contract_url PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_contract_url_reattach PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_ppa_apt_failure PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_ppa_contains_newline PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_ppa_new PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_ppa_unmodified PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_ppa_unset PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_ppa_updated PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_token_contains_newline PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_token_detach PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_token_reattach PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_token_unattached PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_token_update_after_block PASSED :: tests/unit/test_charm.py::TestCharm::test_config_changed_unset_contract_url PASSED :: tests/unit/test_charm.py::TestCharm::test_config_defaults PASSED :: tests/unit/test_charm.py::TestCharm::test_setup_proxy_env PASSED :: :: ============================== 18 passed in 0.38s ============================== :: unit run-test: commands[1] | coverage report :: Name Stmts Miss Branch BrPart Cover Missing :: ---------------------------------------------------------- :: src/charm.py 116 0 30 1 99% 176->175 :: ---------------------------------------------------------- :: TOTAL 116 0 30 1 99% :: ___________________________________ summary ____________________________________ :: unit: commands succeeded :: congratulations :)