Exemplo n.º 1
0
 def test_remove_single_package(self):
     fake_run = Mock()
     with patch(self.to_patch, fake_run):
         pkg_managers.apt_remove(Mock(), 'vim')
         result = fake_run.call_args_list[-1]
     assert 'remove' in result[0][-1]
     assert result[0][-1][-1] == 'vim'
Exemplo n.º 2
0
 def test_remove_multiple_packages(self):
     fake_run = Mock()
     with patch(self.to_patch, fake_run):
         pkg_managers.apt_remove(Mock(), ['vim', 'zsh'])
         result = fake_run.call_args_list[-1]
     assert 'remove' in result[0][-1]
     assert result[0][-1][-2:] == ['vim', 'zsh']
Exemplo n.º 3
0
 def test_remove_multiple_packages(self):
     fake_run = Mock()
     with patch(self.to_patch, fake_run):
         pkg_managers.apt_remove(Mock(), ['vim', 'zsh'])
         result = fake_run.call_args_list[-1]
     assert 'remove' in result[0][-1]
     assert result[0][-1][-2:] == ['vim', 'zsh']
Exemplo n.º 4
0
 def test_remove_single_package(self):
     fake_run = Mock()
     with patch(self.to_patch, fake_run):
         pkg_managers.apt_remove(Mock(), 'vim')
         result = fake_run.call_args_list[-1]
     assert 'remove' in result[0][-1]
     assert result[0][-1][-1] == 'vim'
Exemplo n.º 5
0
def uninstall(conn, purge=False):
    packages = [
        'ceph',
        'ceph-mds',
        'ceph-common',
        'ceph-fs-common',
        ]
    pkg_managers.apt_remove(
        conn,
        packages,
        purge=purge,
    )
Exemplo n.º 6
0
def uninstall(conn, purge=False):
    packages = [
        'ceph',
        'ceph-mds',
        'ceph-common',
        'ceph-fs-common',
        ]
    pkg_managers.apt_remove(
        conn,
        packages,
        purge=purge,
    )
Exemplo n.º 7
0
def remove(distro, packages):
    return pkg_managers.apt_remove(distro.conn, packages)
Exemplo n.º 8
0
def remove(distro, packages):
    return pkg_managers.apt_remove(
        distro.conn,
        packages
    )