Ignore:
Timestamp:
19 Dec 2014, 16:17:17 (10 years ago)
Author:
Henrik Bettermann
Message:

Add exporter tests and fix exporter.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests/test_batching.py

    r12257 r12266  
    7979
    8080    def setup_for_export(self):
    81         document = PDFDocument()
    82         self.app['documents'][document.document_id] = self.document = document
     81        document1 = PDFDocument()
     82        document1.document_id = u'DOC1'
     83        self.app['documents'].addDocument(document1)
     84        self.pdfdocument = document1
    8385        self.outfile = os.path.join(self.workdir, 'myoutput.csv')
    84         role_manager = IPrincipalRoleManager(document)
     86        role_manager = IPrincipalRoleManager(document1)
     87        role_manager.assignRoleToPrincipal(u'johnsrole', u'john')
     88
     89        document2 = HTMLDocument()
     90        document2.document_id = u'DOC2'
     91        self.app['documents'].addDocument(document2)
     92        self.htmldocument = document2
     93        self.outfile = os.path.join(self.workdir, 'myoutput.csv')
     94        role_manager = IPrincipalRoleManager(document2)
    8595        role_manager.assignRoleToPrincipal(u'johnsrole', u'john')
    8696        return
Note: See TracChangeset for help on using the changeset viewer.