test_extract
============
.. py:module:: test_extract
Classes
-------
.. autoapisummary::
test_extract.TestAptExtract
Module Contents
---------------
.. py:class:: TestAptExtract
Test functionalities of :py:mod:`system_helpers.apt.extract`.
.. py:attribute:: APT_POLICY_CCACHE
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
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
"""
.. raw:: html
.. py:attribute:: APT_POLICY_JQ
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
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
"""
.. raw:: html
.. py:method:: get_script()
:staticmethod:
Retrieve script path.
.. py:method:: test_candidate()
Ensure that :py:func:`system_helpers.apt.extract.candidate` works as expected.
.. py:method:: test_extract_single_file()
Try to extract and install a single file from the `jq` package.
.. py:method:: test_extract_many_files()
Try to extract and install many files from the `jq` package.
.. py:method:: test_install_packages_from_cli(script_runner: pytest_console_scripts.ScriptRunner)
Install files from the `ccache` package using the script mode.