コード例 #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
ファイル: test_upgrades.py プロジェクト: taito/ll.theme
    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
ファイル: test_upgrades.py プロジェクト: taito/ll.theme
    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.")