[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/catalog/tests.py Added needed setSite call.

Jim Fulton jim at zope.com
Sun Apr 2 13:00:06 EDT 2006


Log message for revision 66320:
  Added needed setSite call.
  

Changed:
  U   Zope3/branches/jim-adapter/src/zope/app/catalog/tests.py

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/catalog/tests.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/catalog/tests.py	2006-04-02 17:00:01 UTC (rev 66319)
+++ Zope3/branches/jim-adapter/src/zope/app/catalog/tests.py	2006-04-02 17:00:04 UTC (rev 66320)
@@ -28,6 +28,7 @@
 from zope.app.testing import ztapi, setup, placelesssetup
 from BTrees.IFBTree import IFSet
 from zope.app.intid.interfaces import IIntIds
+from zope.app.component.hooks import setSite
 
 from zope.index.interfaces import IInjection, IIndexSearch
 from zope.app.catalog.interfaces import ICatalog
@@ -227,6 +228,7 @@
         sm = self.root.getSiteManager()
         self.utility = setup.addUtility(sm, '', IIntIds, IntIdsStub())
         self.cat = setup.addUtility(sm, '', ICatalog, CatalogStub())
+        setSite(self.root)
 
     def tearDown(self):
         setup.placefulTearDown()



More information about the Zope3-Checkins mailing list