Ignore:
Timestamp:
20 Sep 2011, 06:07:14 (13 years ago)
Author:
Henrik Bettermann
Message:

Complete student workflow.

File:
1 edited

Legend:

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

    r6800 r6801  
    364364        self.browser.getControl(name="transition").value = ['reset6']
    365365        self.browser.getControl("Save").click()
    366         # The pay_school_fee transition triggers some changes of previously
    367         # set attributes
     366        # In state returning the pay_school_fee transition triggers some
     367        # changes of attributes
    368368        student['studycourse'].certificate = self.certificate
    369369        student['studycourse'].current_session = 2004
     
    372372        self.browser.getControl(name="transition").value = ['pay_school_fee']
    373373        self.browser.getControl("Save").click()
    374         self.assertEqual(student['studycourse'].current_session, 2005)
    375         self.assertEqual(student['studycourse'].current_level, 200)
    376         self.assertEqual(student['studycourse'].current_verdict, '')
     374        self.assertEqual(student['studycourse'].current_session, 2005) # +1
     375        self.assertEqual(student['studycourse'].current_level, 200) # +100
     376        self.assertEqual(student['studycourse'].current_verdict, '') # empty
    377377        self.assertEqual(student['studycourse'].previous_verdict, 'A')
     378        self.browser.getControl(name="transition").value = ['register_courses']
     379        self.browser.getControl("Save").click()
     380        self.browser.getControl(name="transition").value = ['validate_courses']
     381        self.browser.getControl("Save").click()
     382        self.browser.getControl(name="transition").value = ['return']
     383        self.browser.getControl("Save").click()
    378384        return
    379385
Note: See TracChangeset for help on using the changeset viewer.