Changeset 16007 for main/waeup.kofa/trunk
- Timestamp:
- 19 Feb 2020, 08:54:47 (5 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r16000 r16007 4 4 1.6.1.dev0 (unreleased) 5 5 ======================= 6 7 * Do not allow course validation if no score has been entered. 6 8 7 9 * Add `unlock_score` field to `CourseTicketProcessor`. -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r15986 r16007 3680 3680 _('Course results have already been validated.'), 3681 3681 type="danger") 3682 for ticket in self.tickets: 3683 if ticket.total_score is not None: 3684 break 3685 self.flash( 3686 _('No score has been entered.'), 3687 type="danger") 3682 3688 return 3683 3689 self._validate_results(form) -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r15998 r16007 4684 4684 self.browser.getControl("Validate").click() 4685 4685 self.assertTrue( 4686 'No score has been entered.' in self.browser.contents) 4687 self.browser.open(self.edit_scores_url) 4688 self.browser.getControl(name="scores:list", index=0).value = '66' 4689 self.browser.getControl("Update scores").click() 4690 self.browser.getControl("Validate").click() 4691 self.assertTrue( 4686 4692 'You successfully validated the course results' 4687 4693 in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.