示例#1
0
    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'))
示例#2
0
    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"))
示例#3
0
    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.')
示例#4
0
    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.")