[Zope3-checkins]
CVS: Zope3/src/zope/app/browser/services/translation/tests
- test_translate.py:1.7
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:12:29 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/services/translation/tests
In directory cvs.zope.org:/tmp/cvs-serv31883/src/zope/app/browser/services/translation/tests
Modified Files:
test_translate.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/browser/services/translation/tests/test_translate.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/services/translation/tests/test_translate.py:1.6 Sun Sep 21 13:30:41 2003
+++ Zope3/src/zope/app/browser/services/translation/tests/test_translate.py Fri Nov 21 12:11:57 2003
@@ -19,7 +19,7 @@
from StringIO import StringIO
from zope.app.tests.placelesssetup import PlacelessSetup
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
from zope.component.factory import provideFactory
from zope.app.browser.services.translation.translate \
@@ -48,7 +48,8 @@
PlacelessSetup.setUp(self)
# Setup the registries
- provideAdapter(IHTTPRequest, IUserPreferredCharsets, HTTPCharsets)
+ ztapi.provideAdapter(IHTTPRequest, IUserPreferredCharsets,
+ HTTPCharsets)
provideFactory('Message Catalog', MessageCatalog)
service = TranslationService('default')
More information about the Zope3-Checkins
mailing list