tests.test_manager_ips moduleΒΆ

IPS exact-match tests.

They replay what IPS printed on OpenIndiana Hipster, so they need neither IPS nor an illumos host.

tests.test_manager_ips.INSTALLED_OUTPUT = 'SUNWcs                                            0.5.11-2026.0.0.23029      i--\nSUNWcsd                                           0.5.11-2026.0.0.23029      i--\narchiver/gnu-tar                                  1.35-2023.0.0.0            i--\naudio/audio-utilities                             0.5.11-2026.0.0.23029      i--\naudio/lame                                        3.100-2025.0.0.3           i--\n'ΒΆ

Five rows of pkg list -H --no-refresh.

tests.test_manager_ips.SEARCH_OUTPUT = 'pkg:/SUNWcs@0.5.11-2026.0.0.23029\topenindiana.org\npkg:/archiver/gnu-tar@1.35-2023.0.0.0\topenindiana.org\npkg:/archiver/ofarc@1.5.1-2026.0.0.0\topenindiana.org\npkg:/developer/quilt@0.69-2026.0.0.2\topenindiana.org\npkg:/library/perl-5/archive-tar@3.4-2025.0.0.1\topenindiana.org\n'ΒΆ

pkg search -H -p tar, whose columns are tab-separated.

tests.test_manager_ips.replaying(monkeypatch, output)[source]ΒΆ

A manager whose every command prints output.

Return type:

IPS

tests.test_manager_ips.test_installed_rows_carry_the_bare_name(monkeypatch)[source]ΒΆ

Each name is split into its path and its last component.

tests.test_manager_ips.test_exact_search_matches_the_bare_name(monkeypatch)[source]ΒΆ

An exact query names the package without the path of its name.