def tearDownZope(self, app): # Uninstall products installed above z2.uninstallProduct(app, 'Products.PloneFormGen') z2.uninstallProduct(app, 'Products.TemplateFields') z2.uninstallProduct(app, 'Products.TALESField') z2.uninstallProduct(app, 'Products.PythonField') z2.uninstallProduct(app, 'Products.membrane')
def setUpZope(self, app, configurationContext): # Load ZCML import plone.app.blocks xmlconfig.file( 'configure.zcml', plone.app.blocks, context=configurationContext ) import plone.app.contenttypes xmlconfig.file( 'configure.zcml', plone.app.contenttypes, context=configurationContext ) import adhocracy.plone xmlconfig.file( 'configure.zcml', adhocracy.plone, context=configurationContext ) # Install products that use an old-style initialize() function z2.installProduct(app, 'Products.DateRecurringIndex') # def tearDownZope(self, app): # # Uninstall products installed above z2.uninstallProduct(app, 'Products.DateRecurringIndex')
def tearDownPloneSite(self, portal): # not implemented yet #applyProfile(portal, 'Products.Doormat:uninstall') # plone.app.contenttypes needs plone.app.event, who needs this one. # https://github.com/plone/plone.app.event/issues/81 z2.uninstallProduct(portal, 'Products.DateRecurringIndex')
def tearDownZope(self, app): handle = DAVFS(WEBDAV_URL, credentials=dict(username=WEBDAV_USERNAME, password=WEBDAV_PASSWORD)) if handle.exists(self.testing_directory): handle.removedir( self.testing_directory, recursive=True, force=True) z2.uninstallProduct(app, 'xmldirector.plonecore')
def tearDownZope(self, app): # Uninstall old-style Products z2.uninstallProduct(app, 'Products.DateRecurringIndex') # reset OS TZ if self.ostz: os.environ['TZ'] = self.ostz elif 'TZ' in os.environ: del os.environ['TZ']
def test_update_when_not_installed(self): app = self.portal.aq_parent z2.uninstallProduct(app, "collective.flattr") from Products.CMFCore.utils import getToolByName setup = getToolByName(self.portal, "portal_setup") setup.runAllImportStepsFromProfile("profile-collective.flattr:uninstall") self.viewlet.update() self.assertFalse(self.viewlet.show)
def tearDownZope(self, app): handle = get_fs_wrapper(WEBDAV_URL, credentials=dict(username=WEBDAV_USERNAME, password=WEBDAV_PASSWORD)) if handle.exists(self.testing_directory): try: handle.removedir( self.testing_directory, recursive=True, force=True) except Exception as e: LOG.error('tearDownZope() failed ({})'.format(e)) z2.uninstallProduct(app, 'xmldirector.plonecore')
def tearDownZope(self, app): """ Tear down test instance """ # Uninstall products installed above z2.uninstallProduct(app, 'Products.PloneFormGen') z2.uninstallProduct(app, 'Products.TemplateFields') z2.uninstallProduct(app, 'Products.TALESField') z2.uninstallProduct(app, 'Products.PythonField')
def tearDownProducts(self, app): """Uninstall all old-style products listed in the the ``products`` tuple of this class. """ for p, config in reversed(self.products): z2.uninstallProduct(app, p) # Clean up Wicked turds # XXX: This may tear down too much state try: from wicked.fieldevent import meta meta.cleanUp() except ImportError: pass
def test_update_not_installed(self): app = self.portal.aq_parent reg = getUtility(IRegistry).forInterface(ICollectiveFlattr) reg.base_url = u'http://example.com' from plone.testing import z2 z2.uninstallProduct(app, 'collective.flattr') from Products.CMFCore.utils import getToolByName setup = getToolByName(self.portal, 'portal_setup') setup.runAllImportStepsFromProfile( 'profile-collective.flattr:uninstall') r = self.renderer(context=self.portal, assignment=flattrportlet.Assignment()) r = r.__of__(self.folder) r.update() self.assertEquals(r.base_url, u'http://nohost')
def tearDownZope(self, app): try: pkg_resources.get_distribution('plone.app.collection') z2.uninstallProduct(app, 'plone.app.collection') except pkg_resources.DistributionNotFound: pass z2.uninstallProduct(app, 'plone.app.blob') z2.uninstallProduct(app, 'Products.ATContentTypes') z2.uninstallProduct(app, 'Products.Archetypes')
def tearDownZope(self, app): # reset sync mode import ploneintranet.microblog.statuscontainer ploneintranet.microblog.statuscontainer.MAX_QUEUE_AGE = 1000 # Uninstall product z2.uninstallProduct(app, 'ploneintranet.suite') z2.uninstallProduct(app, 'collective.indexing') z2.uninstallProduct(app, 'Products.membrane')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, 'younglives.research.types')
def tearDownZope(self, app): z2.uninstallProduct(app, 'plone.app.collection') z2.uninstallProduct(app, 'plone.app.blob') z2.uninstallProduct(app, 'Products.ATContentTypes') z2.uninstallProduct(app, 'Products.Archetypes')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'ploneintranet.attachments')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, "Products.EasyNewsletter")
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'test.template')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'Products.DateRecurringIndex') z2.uninstallProduct(app, 'plone.app.contenttypes') z2.uninstallProduct(app, 'plone.app.multilingual') z2.uninstallProduct(app, 'genweb.controlpanel') z2.uninstallProduct(app, 'genweb.theme') z2.uninstallProduct(app, 'genweb.portlets') z2.uninstallProduct(app, 'genweb.banners') z2.uninstallProduct(app, 'genweb.serveistic')
def tearDownZope(self, app): z2.uninstallProduct(app, 'plone.app.imaging')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'ade25.assetmanager')
def tearDownZope(self, app): z2.uninstallProduct(app, 'plone.app.blob') z2.uninstallProduct(app, 'Products.LinguaPlone')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, "senaite.lims")
def tearDownZope(self, app): z2.uninstallProduct(app, 'collective.jstraining')
def tearDownZope(self, app): """ Uninstall Zope """ z2.uninstallProduct(app, 'eea.daviz') z2.uninstallProduct(app, 'eea.sparql')
def tearDownZope(self, app): # Uninstall products installed above z2.uninstallProduct(app, 'Products.DateRecurringIndex')
def tearDownZope(self, app): # Uninstall product and call its uninstall() function z2.uninstallProduct(app, 'plone.app.widgets.tests.example')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'dps.sitetheme')
def tearDownZope(self, app): z2.uninstallProduct(app, 'pmr2.notification')
def tearDownZope(self, app): """ Uninstall Zope """ z2.uninstallProduct(app, 'eea.faceted.inheritance')
def tearDownZope(self, app): z2.uninstallProduct(app, 'eke.study')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'Products.TinyMCE')
def tearDownZope(self, app): z2.uninstallProduct(app, 'plone.app.blob')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, PROJECTNAME)
def tearDownZope(self, app): """ Uninstall Zope """ z2.uninstallProduct(app, 'eea.forms')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, 'ploneintranet.pagerank')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'imio.helpers')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, 'cmrs.academic')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'Products.PloneFormGen')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'plone.contribute')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'osha.quizzes')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'collective.downloadtracker')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'redturtle.gritterize')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, 'collective.ffcentral')
def tearDownZope(self, app): z2.uninstallProduct(app, 'edrn.rdf') self.testDatabase.close() del self.testDatabase
def tearDownZope(self, app): # Uninstall products installed above z2.uninstallProduct(app, 'collective.workspace')
def tearDownZope(self, app): z2.uninstallProduct(app, 'Products.AROfficeTransforms') z2.uninstallProduct(app, 'Products.DateRecurringIndex') z2.uninstallProduct(app, 'Products.EasyNewsletter')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'ploneintranet.docconv.client')
def tearDownZope(self, app): """Tear down Zope.""" z2.uninstallProduct(app, 'ploneintranet.network')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, 'collective.js.jqueryui') z2.uninstallProduct(app, 'collective.jqueryuithememanager')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, 'plone.jsonapi.core')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, 'ploneintranet.suite')
def tearDownZope(self, app): # Uninstall product z2.uninstallProduct(app, 'plone.formwidget.datetime.at.tests.examples')