[Zope3-checkins] CVS: zopeproducts/photo/tests - test_photo.py:1.3
Bjorn Tillenius
cvs-admin at zope.org
Fri Nov 21 17:07:36 EST 2003
Update of /cvs-repository/zopeproducts/photo/tests
In directory cvs.zope.org:/tmp/cvs-serv16665/tests
Modified Files:
test_photo.py
Log Message:
Updated tests to use the new ztapi.
=== zopeproducts/photo/tests/test_photo.py 1.2 => 1.3 ===
--- zopeproducts/photo/tests/test_photo.py:1.2 Sun Sep 21 18:17:48 2003
+++ zopeproducts/photo/tests/test_photo.py Fri Nov 21 17:07:36 2003
@@ -24,11 +24,11 @@
from zope.app.content.tests.test_image import zptlogo
from zope.app.content.image import Image
from zope.app.interfaces.dublincore import ICMFDublinCore
-from zope.component.adapter import provideAdapter
from zope.app.services.tests.placefulsetup import PlacefulSetup
from zope.interface import implements
from zope.interface.verify import verifyObject
from zope.app import zapi
+from zope.app.tests import ztapi
from zopeproducts.photo.interfaces import IPhoto, IPhotoContainer
from zopeproducts.photo.interfaces import IImageResizeUtility
@@ -61,7 +61,7 @@
def setUp(self):
PlacefulSetup.setUp(self)
- provideAdapter(IPhoto, ICMFDublinCore, dublinCoreStub)
+ ztapi.provideAdapter(IPhoto, ICMFDublinCore, dublinCoreStub)
us = zapi.getService(self, 'Utilities')
us.provideUtility(IImageResizeUtility, ImageResizeStub(),
defaultImageResizer)
More information about the Zope3-Checkins
mailing list