tests.test_manager_mise moduleΒΆ
mise output-parsing and CLI-construction tests.
These tests stub run_cli and exercise the pure-Python branches of the
Mise manager. They do not invoke the real mise binary.
- tests.test_manager_mise.test_installed_yields_one_package_per_version(manager, stub_run_cli)[source]ΒΆ
- tests.test_manager_mise.test_installed_preserves_backend_prefix(manager, stub_run_cli)[source]ΒΆ
Backend-prefixed IDs like
pipx:ruffround-trip without rewriting.
- tests.test_manager_mise.test_outdated_skips_a_lazy_tool_that_is_not_installed(manager, stub_run_cli)[source]ΒΆ
A
nullcurrent version marks a tool mise has not installed.The
ampentry is verbatim from themise outdated --jsonof mise2026.11.0on Omarchy4.5.0, whereampis a lazy tool nobody ran yet. Thenodeentry is the installed tool oftest_outdated_yields_upgrades.
- tests.test_manager_mise.test_search_keeps_descriptions_with_inner_spaces(manager, stub_run_cli)[source]ΒΆ
A description with single-space-separated words is preserved intact.
The regex only treats the run of 2+ spaces between columns as a delimiter.
- tests.test_manager_mise.test_install_builds_spec(manager, capture_run_cli, version, expected_spec)[source]ΒΆ
- tests.test_manager_mise.test_operation_command(manager, capture_run_cli, operation, args, expected)[source]ΒΆ
- tests.test_manager_mise.mise_shims(tmp_path)[source]ΒΆ
A stand-in
misebinary and a directory of shims that point at it.The stand-in answers
mise which mangoalone, as mise does for an installed tool. Returns the shims directory, which holdsmango,papayaand a symlink namedmise.
- tests.test_manager_mise.test_search_all_cli_skips_mise_shim_of_missing_tool(tmp_path, mise_shims)[source]ΒΆ
Running such a shim installs its tool, so a later real binary wins.
- tests.test_manager_mise.test_search_all_cli_keeps_usable_mise_symlink(mise_shims, name)[source]ΒΆ
The shim of an installed tool stays, and so does
miseunder another path.The stand-in exits
1formise which mise, so the second case passes only while no probe runs for a symlink named after the binary.