tests.test_manager_winget moduleΒΆ

WinGet-specific parsing tests.

These tests cover the pure-Python parsing/regex logic. They do not invoke winget.exe and are platform-agnostic.

tests.test_manager_winget.winget()[source]ΒΆ
tests.test_manager_winget.test_store_id_re_matches(package_id)[source]ΒΆ
tests.test_manager_winget.test_store_id_re_rejects(package_id)[source]ΒΆ
tests.test_manager_winget.test_parse_details_ignores_indented_upgrade_line(winget)[source]ΒΆ

Regression test: indented winget lines do not split package blocks.

The package-block split must not fire on indented winget [version] lines under Available Upgrades.

tests.test_manager_winget.test_installed_lists_every_catalog_match(winget, monkeypatch)[source]ΒΆ
tests.test_manager_winget.test_outdated_keeps_every_winget_upgrade(winget, stub_run_cli)[source]ΒΆ
tests.test_manager_winget.test_parse_table_handles_short_header_line(winget)[source]ΒΆ

Regression test: winget may emit a header shorter than the separator.

Trailing spaces on the last column are trimmed. The separator must drive the column width so data rows that fill the full width do not trip the width assertion.

tests.test_manager_winget.test_parse_table_yields_nothing_on_empty_output(winget)[source]ΒΆ
tests.test_manager_winget.test_build_package_native(winget)[source]ΒΆ
tests.test_manager_winget.test_build_package_store_uses_msstore_sentinel(winget, package_id)[source]ΒΆ
tests.test_manager_winget.test_search_orders_native_before_store(winget, stub_run_cli)[source]ΒΆ

Microsoft Store entries come after winget-native ones in the search.

The order winget returned them in does not matter.