[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/registration/tests - test_componentpathwidget.py:1.3.6.2 test_namecomponentregistryview.py:1.1.32.2

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


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

Modified Files:
      Tag: adaptergeddon-branch
	test_componentpathwidget.py test_namecomponentregistryview.py 
Log Message:
Implemented local presentation services.


=== Zope3/src/zope/app/browser/services/registration/tests/test_componentpathwidget.py 1.3.6.1 => 1.3.6.2 ===
--- Zope3/src/zope/app/browser/services/registration/tests/test_componentpathwidget.py:1.3.6.1	Sun Nov  9 11:08:09 2003
+++ Zope3/src/zope/app/browser/services/registration/tests/test_componentpathwidget.py	Tue Nov 18 17:26:23 2003
@@ -26,7 +26,7 @@
 from zope.app.services.field import ComponentPath
 from zope.app.location import LocationPhysicallyLocatable
 from zope.app.traversing.adapters import Traverser, DefaultTraversable
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
 from zope.component.tests.placelesssetup import PlacelessSetup
 from zope.interface import implements, Interface
 from zope.publisher.browser import TestRequest, BrowserView
@@ -57,9 +57,10 @@
 
     def setUp(self):
         PlacelessSetup.setUp(self)
-        provideAdapter(None, ITraverser, Traverser)
-        provideAdapter(None, ITraversable, DefaultTraversable)
-        provideAdapter(None, IPhysicallyLocatable, LocationPhysicallyLocatable)
+        ztapi.provideAdapter(None, ITraverser, Traverser)
+        ztapi.provideAdapter(None, ITraversable, DefaultTraversable)
+        ztapi.provideAdapter(None, IPhysicallyLocatable,
+                             LocationPhysicallyLocatable)
         ztapi.browserView(Interface, "absolute_url", AbsoluteURL)
 
         field = ComponentPath(None, title=u"Path")


=== Zope3/src/zope/app/browser/services/registration/tests/test_namecomponentregistryview.py 1.1.32.1 => 1.1.32.2 ===
--- Zope3/src/zope/app/browser/services/registration/tests/test_namecomponentregistryview.py:1.1.32.1	Sun Nov  9 11:08:09 2003
+++ Zope3/src/zope/app/browser/services/registration/tests/test_namecomponentregistryview.py	Tue Nov 18 17:26:23 2003
@@ -21,7 +21,7 @@
 from zope.interface import Interface, implements
 from zope.publisher.browser import TestRequest
 from zope.app.tests.placelesssetup import PlacelessSetup
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
 from zope.publisher.browser import BrowserView
 from zope.app.browser.services.registration import NameComponentRegistryView
 from zope.app.interfaces.traversing import ITraversable, ITraverser
@@ -80,7 +80,7 @@
 class Test(PlacelessSetup, TestCase):
 
     def test_update(self):
-        provideAdapter(None, ITraverser, Traverser)
+        ztapi.provideAdapter(None, ITraverser, Traverser)
         ztapi.browserView(I, 'ChangeRegistrations', V)
         ztapi.browserView(ITestRegistration, 'absolute_url', AU)
 




More information about the Zope3-Checkins mailing list