[Zope3-checkins] CVS: Zope3/src/zope/app/dav/tests - test_mkcol.py:1.4.6.2 test_propfind.py:1.9.6.3

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


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

Modified Files:
      Tag: adaptergeddon-branch
	test_mkcol.py test_propfind.py 
Log Message:
Implemented local presentation services.


=== Zope3/src/zope/app/dav/tests/test_mkcol.py 1.4.6.1 => 1.4.6.2 ===
--- Zope3/src/zope/app/dav/tests/test_mkcol.py:1.4.6.1	Sun Nov  9 11:08:17 2003
+++ Zope3/src/zope/app/dav/tests/test_mkcol.py	Tue Nov 18 17:26:26 2003
@@ -18,6 +18,7 @@
 __metaclass__ = type
 
 from unittest import TestCase, TestSuite, main, makeSuite
+from zope.app.tests import ztapi
 from zope.component import getService
 from zope.app.services.servicenames import Adapters
 from zope.app.traversing import traverse
@@ -41,9 +42,8 @@
     def setUp(self):
         PlacefulSetup.setUp(self)
         PlacefulSetup.buildFolders(self)
-        provideAdapter = getService(None, Adapters).provideAdapter
-        provideAdapter(IWriteContainer, IWriteDirectory, noop)
-        provideAdapter(IFolder, IDirectoryFactory, Cloner)
+        ztapi.provideAdapter(IWriteContainer, IWriteDirectory, noop)
+        ztapi.provideAdapter(IFolder, IDirectoryFactory, Cloner)
 
     def test_mkcol_not_folderish(self):
         root = self.rootFolder


=== Zope3/src/zope/app/dav/tests/test_propfind.py 1.9.6.2 => 1.9.6.3 ===
--- Zope3/src/zope/app/dav/tests/test_propfind.py:1.9.6.2	Mon Nov 10 15:39:54 2003
+++ Zope3/src/zope/app/dav/tests/test_propfind.py	Tue Nov 18 17:26:26 2003
@@ -143,9 +143,8 @@
         ztapi.setDefaultViewName(ITextLine, 'view')
         ztapi.setDefaultViewName(IDatetime, 'view')
         ztapi.setDefaultViewName(ISequence, 'view')
-        provideAdapter = getService(None, Adapters).provideAdapter
-        provideAdapter(IAnnotatable, IAnnotations, AttributeAnnotations)
-        provideAdapter(IAnnotatable, IZopeDublinCore, ZDCAnnotatableAdapter)
+        ztapi.provideAdapter(IAnnotatable, IAnnotations, AttributeAnnotations)
+        ztapi.provideAdapter(IAnnotatable, IZopeDublinCore, ZDCAnnotatableAdapter)
         provideInterface('DAV:', IDAVSchema)
         provideInterface('http://www.purl.org/dc/1.1', IZopeDublinCore)
 




More information about the Zope3-Checkins mailing list