[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_add.py:1.20.16.2 test_editview.py:1.13.12.2

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


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

Modified Files:
      Tag: adaptergeddon-branch
	test_add.py test_editview.py 
Log Message:
Implemented local presentation services.


=== Zope3/src/zope/app/browser/form/tests/test_add.py 1.20.16.1 => 1.20.16.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_add.py:1.20.16.1	Sun Nov  9 11:08:07 2003
+++ Zope3/src/zope/app/browser/form/tests/test_add.py	Tue Nov 18 17:26:19 2003
@@ -18,12 +18,12 @@
 
 import unittest
 
+from zope.app.tests import ztapi
 from zope.interface import Interface, implements
 from zope.publisher.interfaces.browser import IBrowserRequest
 from zope.publisher.browser import TestRequest
 from zope.schema import TextLine, accessors
 from zope.component import getView
-from zope.component.adapter import provideAdapter
 
 from zope.app.browser.form.add import AddViewFactory, AddView
 from zope.app.browser.form.metaconfigure import AddFormDirective
@@ -93,7 +93,7 @@
     def setUp(self):
         self._context = Context()
         PlacelessSetup.setUp(self)
-        provideAdapter(IFoo, IBar, FooBarAdapter)
+        ztapi.provideAdapter(IFoo, IBar, FooBarAdapter)
 
     def _invoke_add(self, schema=I, name="addthis", permission="zope.Public",
                     label="Add this", content_factory=C, class_=V,


=== Zope3/src/zope/app/browser/form/tests/test_editview.py 1.13.12.1 => 1.13.12.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_editview.py:1.13.12.1	Sun Nov  9 11:08:07 2003
+++ Zope3/src/zope/app/browser/form/tests/test_editview.py	Tue Nov 18 17:26:19 2003
@@ -23,7 +23,7 @@
 from zope.schema.interfaces import ITextLine
 from zope.publisher.browser import TestRequest
 from zope.app.browser.form.editview import EditView
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
 from zope.app.browser.form.widget import TextWidget
 from zope.app.browser.form.submit import Update
 from zope.component.exceptions import ComponentLookupError
@@ -82,7 +82,7 @@
         PlacelessSetup.setUp(self)
         ztapi.browserView(ITextLine, 'edit', TextWidget)
         ztapi.setDefaultViewName(ITextLine, "edit")
-        provideAdapter(IFoo, IBar, FooBarAdapter)
+        ztapi.provideAdapter(IFoo, IBar, FooBarAdapter)
 
     def test_setPrefix_and_widgets(self):
         v = EV(C(), TestRequest())




More information about the Zope3-Checkins mailing list