Ignore:
Timestamp:
9 Dec 2014, 14:45:36 (10 years ago)
Author:
Henrik Bettermann
Message:

Create document slip with thumbnail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py

    r12182 r12183  
    10831083        open(path, 'wb').write(self.browser.contents)
    10841084        print "Sample PDF overview_slip.pdf written to %s" % path
    1085         # Officers can open document slips
     1085        # Officers can open document slips which shows a thumbnail of
     1086        # the jpeg file attached.
     1087        file_id = IFileStoreNameChooser(self.document).chooseName(attr='sample.jpg')
     1088        fs = ExtFileStore(root=self.dc_root)
     1089        jpegfile = open(SAMPLE_IMAGE, 'rb')
     1090        fs.createFile(file_id, jpegfile)
    10861091        self.browser.open(self.customer_path + '/documents/d101')
    10871092        self.browser.getLink("Download document slip").click()
Note: See TracChangeset for help on using the changeset viewer.