def test_install_package(self): installer = getToolByName(self.portal, 'portal_quickinstaller') installer.uninstallProducts(['collective.cropimage']) self.assertFalse(installer.isProductInstalled('collective.cropimage')) from ll.theme.upgrades import install_packages install_packages(self.portal, 'collective.cropimage') self.assertTrue(installer.isProductInstalled('collective.cropimage'))
def test_install_package(self): installer = getToolByName(self.portal, "portal_quickinstaller") installer.uninstallProducts(["collective.cropimage"]) self.assertFalse(installer.isProductInstalled("collective.cropimage")) from ll.theme.upgrades import install_packages install_packages(self.portal, "collective.cropimage") self.assertTrue(installer.isProductInstalled("collective.cropimage"))
def test_install_packages(self): installer = getToolByName(self.portal, 'portal_quickinstaller') installer.uninstallProducts(['collective.cropimage']) self.assertFalse(installer.isProductInstalled('collective.cropimage')) from ll.theme.upgrades import install_packages logger = mock.Mock() install_packages(self.portal, ['collective.cropimage'], logger) self.assertTrue(installer.isProductInstalled('collective.cropimage')) logger.info.assert_called_with('Installing collective.cropimage.')
def test_install_packages(self): installer = getToolByName(self.portal, "portal_quickinstaller") installer.uninstallProducts(["collective.cropimage"]) self.assertFalse(installer.isProductInstalled("collective.cropimage")) from ll.theme.upgrades import install_packages logger = mock.Mock() install_packages(self.portal, ["collective.cropimage"], logger) self.assertTrue(installer.isProductInstalled("collective.cropimage")) logger.info.assert_called_with("Installing collective.cropimage.")