Ignore:
Timestamp:
22 Sep 2013, 04:09:57 (11 years ago)
Author:
Henrik Bettermann
Message:

Add test to ensure that non-integer scores don't cause a traceback.

File:
1 edited

Legend:

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

    r10634 r10636  
    17231723        self.assertTrue('mrslecturer - students.browser.EditScoresPage - '
    17241724                        'K1000000 100/COURSE1 score updated (55)' in logcontent)
     1725        # Non-integer scores won't be accepted
     1726        self.browser.open(
     1727            "http://localhost/app/faculties/fac1/dep1/courses/COURSE1/edit_scores")
     1728        self.assertTrue('value="55" />' in self.browser.contents)
     1729        self.browser.getControl(name="scores", index=0).value = 'abc'
     1730        self.browser.getControl("Update scores").click()
     1731        self.assertTrue('Error: Score(s) of Anna Tester have not be updated'
     1732            in self.browser.contents)
    17251733
    17261734    def test_change_current_mode(self):
Note: See TracChangeset for help on using the changeset viewer.