[Zope3-checkins] CVS: Zope3/src/zope/app/content/tests - test_dtmlpage.py:1.6.6.1 test_folder.py:1.10.6.1 test_sqlscript.py:1.14.12.1 test_zptpage.py:1.14.6.2

Jim Fulton cvs-admin at zope.org
Tue Nov 18 17:26:57 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/content/tests
In directory cvs.zope.org:/tmp/cvs-serv19243/src/zope/app/content/tests

Modified Files:
      Tag: adaptergeddon-branch
	test_dtmlpage.py test_folder.py test_sqlscript.py 
	test_zptpage.py 
Log Message:
Implemented local presentation services.


=== Zope3/src/zope/app/content/tests/test_dtmlpage.py 1.6 => 1.6.6.1 ===
--- Zope3/src/zope/app/content/tests/test_dtmlpage.py:1.6	Sun Sep 21 13:31:53 2003
+++ Zope3/src/zope/app/content/tests/test_dtmlpage.py	Tue Nov 18 17:26:26 2003
@@ -25,7 +25,7 @@
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.app.traversing.adapters import Traverser, DefaultTraversable
 from zope.app.interfaces.traversing import ITraverser, ITraversable
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
 from zope.security.checker import NamesChecker, defineChecker
 from zope.app.container.contained import contained
 
@@ -43,8 +43,8 @@
 
     def setUp(self):
         PlacelessSetup.setUp(self)
-        provideAdapter(None, ITraverser, Traverser)
-        provideAdapter(None, ITraversable, DefaultTraversable)
+        ztapi.provideAdapter(None, ITraverser, Traverser)
+        ztapi.provideAdapter(None, ITraversable, DefaultTraversable)
         defineChecker(Data, NamesChecker(['URL', 'name', '__getitem__']))
 
     def test(self):


=== Zope3/src/zope/app/content/tests/test_folder.py 1.10 => 1.10.6.1 ===
--- Zope3/src/zope/app/content/tests/test_folder.py:1.10	Sun Sep 21 13:32:01 2003
+++ Zope3/src/zope/app/content/tests/test_folder.py	Tue Nov 18 17:26:26 2003
@@ -13,7 +13,7 @@
 ##############################################################################
 from unittest import TestCase, TestSuite, main, makeSuite
 from zope.component import getAdapter
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
 from zope.app.traversing import traverse
 from zope.app.interfaces.dublincore import IZopeDublinCore
 from zope.app.interfaces.content.folder import IFolder
@@ -45,7 +45,7 @@
     def setUp(self):
         PlacefulSetup.setUp(self)
         PlacefulSetup.buildFolders(self)
-        provideAdapter(IFolder, IZopeDublinCore, ZDCAnnotatableAdapter)
+        ztapi.provideAdapter(IFolder, IZopeDublinCore, ZDCAnnotatableAdapter)
 
 def test_suite():
     return TestSuite((


=== Zope3/src/zope/app/content/tests/test_sqlscript.py 1.14 => 1.14.12.1 ===
--- Zope3/src/zope/app/content/tests/test_sqlscript.py:1.14	Tue Aug 19 13:34:15 2003
+++ Zope3/src/zope/app/content/tests/test_sqlscript.py	Tue Nov 18 17:26:26 2003
@@ -15,7 +15,7 @@
 $Id$
 """
 import unittest
-
+from zope.app.tests import ztapi
 from zope.interface import implements, classImplements
 
 from zope.app.interfaces.rdb import IConnectionService
@@ -136,13 +136,13 @@
         self.caching_service = CachingServiceStub()
         sm.defineService('Caching', ICachingService)
         sm.provideService('Caching', self.caching_service)
-        getService(None, Adapters).provideAdapter(
+        ztapi.provideAdapter(
             IAttributeAnnotatable, IAnnotations,
             AttributeAnnotations)
-        getService(None, Adapters).provideAdapter(
+        ztapi.provideAdapter(
             ISQLScript, IPhysicallyLocatable,
             LocatableStub)
-        getService(None, Adapters).provideAdapter(
+        ztapi.provideAdapter(
             IAnnotatable, ICacheable,
             AnnotationCacheable)
 


=== Zope3/src/zope/app/content/tests/test_zptpage.py 1.14.6.1 => 1.14.6.2 ===
--- Zope3/src/zope/app/content/tests/test_zptpage.py:1.14.6.1	Sun Nov  9 11:08:16 2003
+++ Zope3/src/zope/app/content/tests/test_zptpage.py	Tue Nov 18 17:26:26 2003
@@ -35,7 +35,7 @@
 from zope.app.traversing.adapters import Traverser, DefaultTraversable
 from zope.app.interfaces.traversing import ITraverser
 from zope.app.interfaces.traversing import ITraversable
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
 from zope.security.checker import NamesChecker, defineChecker
 from zope.app.container.contained import contained
 
@@ -49,9 +49,9 @@
 
     def setUp(self):
         PlacelessSetup.setUp(self)
-        provideAdapter(None, ITraverser, Traverser)
-        provideAdapter(None, ITraversable, DefaultTraversable)
-        provideAdapter(IZPTPage, ISearchableText, SearchableText)
+        ztapi.provideAdapter(None, ITraverser, Traverser)
+        ztapi.provideAdapter(None, ITraversable, DefaultTraversable)
+        ztapi.provideAdapter(IZPTPage, ISearchableText, SearchableText)
         defineChecker(Data, NamesChecker(['URL', 'name']))
         defineChecker(TestRequest, NamesChecker(['getPresentationSkin']))
 




More information about the Zope3-Checkins mailing list