[Zope3-checkins] CVS: Zope3/src/zope/app/cache/tests -
test_annotationcacheable.py:1.9.12.1 test_caching.py:1.9.12.1
Jim Fulton
cvs-admin at zope.org
Tue Nov 18 17:26:55 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/cache/tests
In directory cvs.zope.org:/tmp/cvs-serv19243/src/zope/app/cache/tests
Modified Files:
Tag: adaptergeddon-branch
test_annotationcacheable.py test_caching.py
Log Message:
Implemented local presentation services.
=== Zope3/src/zope/app/cache/tests/test_annotationcacheable.py 1.9 => 1.9.12.1 ===
--- Zope3/src/zope/app/cache/tests/test_annotationcacheable.py:1.9 Tue Aug 19 13:34:12 2003
+++ Zope3/src/zope/app/cache/tests/test_annotationcacheable.py Tue Nov 18 17:26:24 2003
@@ -16,6 +16,7 @@
$Id$
"""
from unittest import TestCase, TestSuite, main, makeSuite
+from zope.app.tests import ztapi
from zope.app.tests.placelesssetup import PlacelessSetup
from zope.component import getService
from zope.app.services.servicenames import Adapters
@@ -53,7 +54,7 @@
class TestAnnotationCacheable(PlacelessSetup, TestCase):
def setUp(self):
PlacelessSetup.setUp(self)
- getService(None, Adapters).provideAdapter(
+ ztapi.provideAdapter(
IAttributeAnnotatable, IAnnotations,
AttributeAnnotations)
self.service = CachingServiceStub()
=== Zope3/src/zope/app/cache/tests/test_caching.py 1.9 => 1.9.12.1 ===
--- Zope3/src/zope/app/cache/tests/test_caching.py:1.9 Tue Aug 19 13:34:12 2003
+++ Zope3/src/zope/app/cache/tests/test_caching.py Tue Nov 18 17:26:24 2003
@@ -17,6 +17,7 @@
"""
from unittest import TestCase, TestSuite, main, makeSuite
+from zope.app.tests import ztapi
from zope.app.interfaces.cache import ICacheable, ICachingService
from zope.app.cache.caching import getCacheForObj
from zope.app.cache.annotationcacheable import AnnotationCacheable
@@ -52,10 +53,10 @@
def setUp(self):
PlacelessSetup.setUp(self)
- getService(None, Adapters).provideAdapter(
+ ztapi.provideAdapter(
IAttributeAnnotatable, IAnnotations,
AttributeAnnotations)
- getService(None, Adapters).provideAdapter(
+ ztapi.provideAdapter(
IAnnotatable, ICacheable,
AnnotationCacheable)
self.service = CachingServiceStub()
More information about the Zope3-Checkins
mailing list