Changeset 8975


Ignore:
Timestamp:
12 Jul 2012, 05:35:32 (12 years ago)
Author:
Henrik Bettermann
Message:

Add regression test: The clr_code attribute is set when we import a file with an empty clr_code column. This leads to a ValueError?: ('clr_code', 'field is readonly') which is now also reproduced in the browser test.

File:
1 edited

Legend:

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

    r8963 r8975  
    11751175        self.assertMatches('...Not all required fields filled...',
    11761176                           self.browser.contents)
    1177         self.student.email = 'aa@aa.ng'
     1177        self.browser.open(self.student_path + '/edit_base')
     1178        self.browser.getControl(name="form.email").value = 'aa@aa.ng'
     1179        self.browser.getControl("Save").click()
    11781180        self.browser.open(self.student_path + '/start_clearance')
    11791181        self.browser.getControl(name="ac_series").value = '3'
     
    11901192        # Set the correct owner
    11911193        self.existing_clrac.owner = self.student_id
     1194        # clr_code might be set (and thus returns None) due importing
     1195        # an empty clr_code column.
     1196        self.student.clr_code = None
    11921197        self.browser.getControl("Start clearance now").click()
    11931198        self.assertMatches('...Clearance process has been started...',
Note: See TracChangeset for help on using the changeset viewer.