Ignore:
Timestamp:
7 Apr 2021, 08:48:15 (4 years ago)
Author:
Henrik Bettermann
Message:

See #1207.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r16440 r16447  
    153153        if not store.getFileByContext(self.context, attr=u'secr_cults.jpg'):
    154154            return _('No affidavit of non-membership of secret cults uploaded.')
     155        if not store.getFileByContext(self.context, attr=u'olevel_sc.jpg'):
     156            return _('No O level results scratch card uploaded.')
    155157        return False
    156158
    157     def update(self):
    158         self.flash(CLEARANCE_FLASH_MESSAGE, type="warning")
    159         return super(CustomStudentClearanceEditFormPage, self).update()
     159    #def update(self):
     160    #    self.flash(CLEARANCE_FLASH_MESSAGE, type="warning")
     161    #    return super(CustomStudentClearanceEditFormPage, self).update()
    160162
    161163class CustomOnlinePaymentAddFormPage(NigeriaOnlinePaymentAddFormPage):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r16386 r16447  
    193193        self.browser.getControl("Save and request clearance").click()
    194194
    195         #self.assertTrue('No second sitting result uploaded'
    196         #    in self.browser.contents)
    197         #scd_sit_scan = 'My second sitting result'
    198         #file_id = IFileStoreNameChooser(self.student).chooseName(
    199         #    attr="scd_sit_scan.jpg")
    200         #file_store.createFile(file_id, StringIO(scd_sit_scan))
    201         #self.browser.open(self.edit_clearance_path)
    202         #self.browser.getControl("Save and request clearance").click()
    203 
    204195        self.assertTrue('No affidavit of non-membership of secret cults uploaded'
    205196            in self.browser.contents)
     
    208199            attr="secr_cults.jpg")
    209200        file_store.createFile(file_id, StringIO(secr_cults))
     201        self.browser.open(self.edit_clearance_path)
     202        self.browser.getControl("Save and request clearance").click()
     203
     204        self.assertTrue('No O level results scratch card uploaded'
     205            in self.browser.contents)
     206        olevel_sc = 'My O level results scratch card'
     207        file_id = IFileStoreNameChooser(self.student).chooseName(
     208            attr="olevel_sc.jpg")
     209        file_store.createFile(file_id, StringIO(olevel_sc))
     210
    210211        # Clearance invitation letter is not yet available
    211212        self.browser.open(self.clearance_path)
Note: See TracChangeset for help on using the changeset viewer.