Changeset 6524 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 15 Jul 2011, 10:40:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/image/browser/tests/test_views.py
r5924 r6524 28 28 from tempfile import mkstemp 29 29 from hurry.file import HurryFile 30 from hurry.file.file import IdFileRetrieval 31 from hurry.file.interfaces import IFileRetrieval 30 32 from waeup.sirp.image.browser.views import HurryFileView 31 from zope.component import getMultiAdapter 33 from zope.component import getMultiAdapter, provideUtility 32 34 from zope.publisher.browser import TestRequest 33 35 … … 52 54 53 55 layer = ImageBrowserViewsLayer 54 56 55 57 def setUp(self): 56 58 # Create a bunch of files and `HurryFile` objects pointing to … … 66 68 self.content_types[name] = content_type 67 69 self.request = TestRequest() 70 # Now create the most simple fileretrieval possible 71 retrieval = IdFileRetrieval() 72 provideUtility(retrieval, IFileRetrieval) 68 73 return 69 74 … … 86 91 content_type, self.content_types['jpg'] 87 92 ) 88
Note: See TracChangeset for help on using the changeset viewer.