[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore/tests - test_creatorannotator.py:1.6

Jim Fulton cvs-admin at zope.org
Fri Nov 21 12:12:35 EST 2003


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

Modified Files:
	test_creatorannotator.py 
Log Message:
Changed to use the new ztapi module, which provides handy functions
for setting up adapters and views for tests.  This is needed because
there are no-longer global adapter and view services sitting around as
module globals.


=== Zope3/src/zope/app/dublincore/tests/test_creatorannotator.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/dublincore/tests/test_creatorannotator.py:1.5	Fri Jul 11 04:33:00 2003
+++ Zope3/src/zope/app/dublincore/tests/test_creatorannotator.py	Fri Nov 21 12:12:03 2003
@@ -21,7 +21,7 @@
 from zope.testing.cleanup import CleanUp
 
 from zope.interface import Interface, implements
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
 
 from zope.app.dublincore.creatorannotator import CreatorAnnotator
 from zope.app.interfaces.dublincore import IZopeDublinCore
@@ -74,7 +74,7 @@
 
     def setUp(self):
         PlacefulSetup.setUp(self)
-        provideAdapter(IDummyContent, IZopeDublinCore, DummyDCAdapter)
+        ztapi.provideAdapter(IDummyContent, IZopeDublinCore, DummyDCAdapter)
         noSecurityManager()
         
     def tearDown(self):




More information about the Zope3-Checkins mailing list