test_extract

Classes

TestAptExtract

Test functionalities of system_helpers.apt.extract.

Module Contents

class test_extract.TestAptExtract

Test functionalities of system_helpers.apt.extract.

APT_POLICY_CCACHE = Multiline-String
Show Value
"""
ccache:
  Installed: (none)
  Candidate: 4.8+really4.7.5-1
  Version table:
     4.8+really4.7.5-1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
"""
APT_POLICY_JQ = Multiline-String
Show Value
"""
jq:
  Installed: (none)
  Candidate: 1.7.1-6+deb13u1
  Version table:
     1.7.1-6+deb13u1 500
        500 http://deb.debian.org/debian trixie/main amd64 Packages
"""
static get_script()

Retrieve script path.

test_candidate()

Ensure that system_helpers.apt.extract.candidate() works as expected.

test_extract_single_file()

Try to extract and install a single file from the jq package.

test_extract_many_files()

Try to extract and install many files from the jq package.

test_install_packages_from_cli(script_runner: pytest_console_scripts.ScriptRunner)

Install files from the ccache package using the script mode.