[Zope3-checkins] CVS: Zope3/src/zope/app/index/keyword/tests - test_index.py:1.3

Jim Fulton cvs-admin at zope.org
Fri Nov 21 12:12:39 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/index/keyword/tests
In directory cvs.zope.org:/tmp/cvs-serv31883/src/zope/app/index/keyword/tests

Modified Files:
	test_index.py 
Log Message:
Changed to use the new ztapi module, which provides handy functions
for setting up adapters and views for tests.  This is needed because
there are no-longer global adapter and view services sitting around as
module globals.


=== Zope3/src/zope/app/index/keyword/tests/test_index.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/index/keyword/tests/test_index.py:1.2	Sun Aug 17 02:06:55 2003
+++ Zope3/src/zope/app/index/keyword/tests/test_index.py	Fri Nov 21 12:12:07 2003
@@ -21,7 +21,7 @@
 from zope.interface import Interface, Attribute, implements
 from zope.interface.verify import verifyObject
 from zope.app.services.tests.placefulsetup import PlacefulSetup
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
 from zope.app.services.hub import \
     ObjectRegisteredHubEvent, ObjectUnregisteredHubEvent, ObjectModifiedHubEvent
 from zope.app.index.keyword.index import KeywordCatalogIndex
@@ -62,7 +62,7 @@
 
     def setUp(self):
         PlacefulSetup.setUp(self)
-        provideAdapter(None, ISomeInterface, SomeAdapter)
+        ztapi.provideAdapter(None, ISomeInterface, SomeAdapter)
         self.buildFolders()
         self.index = KeywordCatalogIndex('words')
         self.object = FakeSearchableObject()




More information about the Zope3-Checkins mailing list