Ignore:
Timestamp:
19 Feb 2020, 08:54:47 (5 years ago)
Author:
Henrik Bettermann
Message:

Do not allow course validation if no score has been entered.

Location:
main/waeup.kofa/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r16000 r16007  
    441.6.1.dev0 (unreleased)
    55=======================
     6
     7* Do not allow course validation if no score has been entered.
    68
    79* Add `unlock_score` field to `CourseTicketProcessor`.
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r15986 r16007  
    36803680                    _('Course results have already been validated.'),
    36813681                    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")
    36823688                return
    36833689            self._validate_results(form)
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r15998 r16007  
    46844684        self.browser.getControl("Validate").click()
    46854685        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(
    46864692            'You successfully validated the course results'
    46874693            in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.