[Zope3-checkins] CVS: Zope3/src/zope/app/index/field/tests -
test_index.py:1.5
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:12:38 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/index/field/tests
In directory cvs.zope.org:/tmp/cvs-serv31883/src/zope/app/index/field/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/field/tests/test_index.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/index/field/tests/test_index.py:1.4 Sun Sep 21 13:32:19 2003
+++ Zope3/src/zope/app/index/field/tests/test_index.py Fri Nov 21 12:12:07 2003
@@ -24,7 +24,7 @@
from zope.app.services.tests.placefulsetup import PlacefulSetup
from zope.app.traversing import traverse
from zope.component import getService
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
from zope.app.services.servicenames import HubIds
from zope.app.interfaces.services.hub import \
IRegistrationHubEvent, IObjectModifiedHubEvent
@@ -61,7 +61,7 @@
def setUp(self):
PlacefulSetup.setUp(self)
- provideAdapter(None, ISomeInterface, SomeAdapter)
+ ztapi.provideAdapter(None, ISomeInterface, SomeAdapter)
self.buildFolders()
self.index = FieldIndex('zope3')
self.rootFolder['myIndex'] = self.index
More information about the Zope3-Checkins
mailing list