Changeset 15827 for main/waeup.fceokene
- Timestamp:
- 19 Nov 2019, 13:08:27 (5 years ago)
- 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 107 107 108 108 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): 110 111 return 111 112 self.orderId = self.context.p_id … … 116 117 self.redirect(self.url(self.context, '@@index')) 117 118 return 119 self.context.r_company = u'remita' 118 120 return 119 121 … … 171 173 172 174 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): 174 177 return 175 178 self.orderId = self.context.p_id … … 180 183 self.redirect(self.url(self.context, '@@index')) 181 184 return 185 self.context.r_company = u'remita' 182 186 return -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r15594 r15827 108 108 self.assertMatches('...Amount Authorized...', 109 109 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) 114 113 # Set ticket paid 115 114 ticket = self.student['payments'].items()[0][1]
Note: See TracChangeset for help on using the changeset viewer.