tests.test_manager_tazpkg moduleΒΆ
TazPkg output tests.
They replay what TazPkg 5.9.5 printed on SliTaz 5.0 with --output=raw, so they
neither need tazpkg nor a SliTaz host.
- tests.test_manager_tazpkg.SEARCH_OUTPUT = '\nSearch result for "nano"\n================================================================================\nInstalled packages\n--------------------------------------------------------------------------------\nnano 9.0 utilities\nnanochess 1.0 games\n================================================================================\n2 installed packages found for "nano"\n\nAvailable packages\n--------------------------------------------------------------------------------\nnano 9.0 utilities\nnano-doc 9.0 utilities\nnano-lang 9.0 utilities\nnanochess 1.0 games\nnanoshot 0.2.15 utilities\n================================================================================\n5 available packages found for "nano"\n\n'ΒΆ
tazpkg search nano.
- tests.test_manager_tazpkg.INSTALL_OUTPUT = 'Package "figlet-2.2.5.tazpkg" already in the cache\n\nInstallation of package "figlet"\n================================================================================\nA program for making large letters out of ordinary text.\n--------------------------------------------------------------------------------\nCopying package... Done\nExtracting package... Done\nRemember modified packages... Done\nInstalling package... Done\nRemoving all tmp files... Done\n================================================================================\nPackage "figlet" (2.2.5) is installed.\n\n'ΒΆ
tazpkg get-install figlet --forced, which exits0.
- tests.test_manager_tazpkg.REFUSAL_OUTPUT = 'Package "figlet-2.2.5.tazpkg" already in the cache\n\n\nYou need upgrade tazpkg first !\n\nrun tazpkg -gi tazpkg --forced then relaunch tazpkg -gi figlet\n\n\n'ΒΆ
tazpkg get-install figlet --forcedwhile/var/lock/tazpkgup.lockexists, which also exits0.
- tests.test_manager_tazpkg.replaying(monkeypatch, output)[source]ΒΆ
A manager whose every command prints
output.- Return type:
- tests.test_manager_tazpkg.test_search_reports_an_installed_match_once(monkeypatch)[source]ΒΆ
An installed match also listed by the mirror is one result, not two.