Ignore:
Timestamp:
25 Jan 2012, 17:47:23 (13 years ago)
Author:
Henrik Bettermann
Message:

Enable import of student registration states which are in IMPORTABLE_STATES.

Set workflow state directly rather than firing transitions.

File:
1 edited

Legend:

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

    r7497 r7513  
    3131from zope.securitypolicy.interfaces import IPrincipalRoleManager
    3232from zope.testbrowser.testing import Browser
    33 from hurry.workflow.interfaces import IWorkflowInfo
     33from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    3434from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
    3535from waeup.sirp.app import University
     
    769769        prmlocal = IPrincipalRoleManager(department)
    770770        prmlocal.assignRoleToPrincipal('waeup.local.ClearanceOfficer', 'mrclear')
    771         IWorkflowInfo(self.student).fireTransition('admit')
    772         IWorkflowInfo(self.student).fireTransition('start_clearance')
     771        IWorkflowState(self.student).setState('clearance started')
    773772        # Login as clearance officer
    774773        self.browser.open(self.login_path)
     
    857856        prmlocal = IPrincipalRoleManager(cert)
    858857        prmlocal.assignRoleToPrincipal('waeup.local.CourseAdviser100', 'mrsadvise')
    859         IWorkflowInfo(self.student).fireTransition('admit')
    860         IWorkflowInfo(self.student).fireTransition('start_clearance')
    861         IWorkflowInfo(self.student).fireTransition('request_clearance')
    862         IWorkflowInfo(self.student).fireTransition('clear')
    863         IWorkflowInfo(self.student).fireTransition('pay_first_school_fee')
     858        IWorkflowState(self.student).setState('school fee paid')
    864859        # Login as course adviser
    865860        self.browser.open(self.login_path)
Note: See TracChangeset for help on using the changeset viewer.