Changeset 15827


Ignore:
Timestamp:
19 Nov 2019, 13:08:27 (5 years ago)
Author:
Henrik Bettermann
Message:

Fix module_activated.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/remita/browser.py

    r15296 r15827  
    107107
    108108    def update(self):
    109         if not module_activated(self.context.student.current_session):
     109        if not module_activated(
     110            self.context.student.current_session, self.context):
    110111            return
    111112        self.orderId = self.context.p_id
     
    116117            self.redirect(self.url(self.context, '@@index'))
    117118            return
     119        self.context.r_company = u'remita'
    118120        return
    119121
     
    171173
    172174    def update(self):
    173         if not module_activated(self.context.__parent__.__parent__.year):
     175        if not module_activated(
     176            self.context.__parent__.__parent__.year, self.context):
    174177            return
    175178        self.orderId = self.context.p_id
     
    180183            self.redirect(self.url(self.context, '@@index'))
    181184            return
     185        self.context.r_company = u'remita'
    182186        return
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py

    r15594 r15827  
    108108        self.assertMatches('...Amount Authorized...',
    109109                           self.browser.contents)
    110         # Managers can open payment slip
    111         self.browser.getLink("Download payment slip").click()
    112         self.assertEqual(self.browser.headers['Status'], '200 Ok')
    113         self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     110        # Managers can open payment slip because we did not proceed to
     111        # any payment gateway
     112        self.assertFalse('Download payment slip' in self.browser.contents)
    114113        # Set ticket paid
    115114        ticket = self.student['payments'].items()[0][1]
Note: See TracChangeset for help on using the changeset viewer.