tests.test_manager_pipx moduleΒΆ

pipx output-parsing and CLI-construction tests.

These tests stub run_cli and exercise the pure-Python branches of the Pipx manager. They do not invoke the real pipx binary.

tests.test_manager_pipx.manager()[source]ΒΆ
tests.test_manager_pipx.test_installed_yields_packages(manager, stub_run_cli)[source]ΒΆ
tests.test_manager_pipx.test_installed_handles_empty(manager, stub_run_cli, output)[source]ΒΆ
tests.test_manager_pipx.test_outdated_version_gate(manager, capture_run_cli, version, expected_call)[source]ΒΆ

The native outdated query needs pipx >= 1.16.0.

Older ones fall back to enumerating the venvs before probing each with its embedded pip.

tests.test_manager_pipx.test_outdated_native_parses_envelope(manager, stub_run_cli)[source]ΒΆ
tests.test_manager_pipx.test_outdated_native_handles_empty(manager, stub_run_cli, output)[source]ΒΆ
tests.test_manager_pipx.test_outdated_legacy_silences_dependencies(manager, monkeypatch)[source]ΒΆ

The per-venv pip probe only reports the main package of the venv.

The outdated dependencies the probe also lists are left out.