Ignore:
Timestamp:
28 Jun 2017, 05:28:54 (8 years ago)
Author:
Henrik Bettermann
Message:

Apply filter also to CustomExportPDFScoresSlip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r14701 r14707  
    430430        self.browser.open(self.edit_scores_url)
    431431        self.assertTrue('No student found' in self.browser.contents)
     432        pdf_url = '%s/coursetickets.pdf' % self.course_url
     433        self.browser.open(pdf_url)
     434        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     435        self.assertEqual(
     436            self.browser.headers['Content-Type'], 'application/pdf')
     437        path = os.path.join(samples_dir(), 'coursetickets_filtered.pdf')
     438        open(path, 'wb').write(self.browser.contents)
     439        print "Sample PDF coursetickets_filtered.pdf written to %s" % path
    432440        self.app['configuration']['2004'].score_editing_enabled = ['ug_ft']
    433441        self.browser.open(self.edit_scores_url)
Note: See TracChangeset for help on using the changeset viewer.