[Zope-Checkins] SVN: Zope/trunk/src/Products/ZODBMountPoint/tests/testMountPoint.py Remove explicit product installs, these aren't used by ZODBMountPoint

Hanno Schlichting hannosch at hannosch.eu
Sun Jun 27 07:42:52 EDT 2010


Log message for revision 113924:
  Remove explicit product installs, these aren't used by ZODBMountPoint
  

Changed:
  U   Zope/trunk/src/Products/ZODBMountPoint/tests/testMountPoint.py

-=-
Modified: Zope/trunk/src/Products/ZODBMountPoint/tests/testMountPoint.py
===================================================================
--- Zope/trunk/src/Products/ZODBMountPoint/tests/testMountPoint.py	2010-06-27 11:36:07 UTC (rev 113923)
+++ Zope/trunk/src/Products/ZODBMountPoint/tests/testMountPoint.py	2010-06-27 11:42:51 UTC (rev 113924)
@@ -20,7 +20,6 @@
 import unittest
 import transaction
 from OFS.Application import Application
-from OFS.Application import get_folder_permissions
 from OFS.Folder import Folder
 import App.config
 from Products.ZODBMountPoint.MountedObject import manage_addMounts
@@ -97,7 +96,7 @@
         conf = DBTab(mount_factories, mount_points)
         d = App.config.DefaultConfiguration()
         d.dbtab = conf
-        d.enable_product_installation = True
+        d.enable_product_installation = True # TODO
         App.config.setConfiguration(d)
         self.conf = conf
         db = conf.getDatabase('/')
@@ -105,9 +104,6 @@
         root = conn.root()
         root['Application'] = app = Application()
         self.app = app
-        install_product(app, 'ZCatalog')
-        install_product(app, 'PluginIndexes')
-        install_product(app, 'OFSP')
         # login
         from AccessControl.User import system
         from AccessControl.SecurityManagement import newSecurityManager
@@ -232,12 +228,5 @@
         self.assertEqual(conn3.opened, None)
 
 
-def install_product(app, product_name):
-    from OFS.Application import install_product
-    product_dir = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)
-    install_product(app, product_dir, product_name, [],
-                    get_folder_permissions(), raise_exc=True)
-
-
 def test_suite():
     return unittest.makeSuite(MountingTests, 'test')



More information about the Zope-Checkins mailing list