Example #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'))
Example #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"))
Example #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.')
Example #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.")