Changeset 8244 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 22 Apr 2012, 10:12:23 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_payment_data.csv
r8233 r8244 1 matric_number,p_state,p_category, r_pay_reference,r_desc,p_id,reg_number,session_id,r_amount_approved,p_item,amount_auth,r_card_num,r_code,creation_date,type,surcharge_12 ,paid,schoolfee, GTB|WEB|FUT|26-11-2010|002295,Approved Successful,3816951290797973744#,1,2010,19500,BTECHBDT,19500,0942,00,2010/11/26 19:59:33.744 GMT+1,online,03 100001,unpaid,schoolfee, GTB|WEB|FUT|25-11-2010|,Transaction status unconfirmed,3816951290712593757,,2010,0,BTECHBDT,19500,0942,Z0,2010-11-25 20:16:33.757 GMT+1,online,04 ,paid,schoolfee, UBA|WEB|FUT|15-02-2010|000517,Approved Successful,p1266236341955,3,2009,19500,BTECHBDT,19500,0615,00,2010/02/15 13:19:01,online,01 matric_number,p_state,p_category,p_id,reg_number,session_id,r_amount_approved,p_item,amount_auth,r_card_num,r_code,creation_date,type 2 ,paid,schoolfee,3816951290797973744#,1,2010,19500,BTECHBDT,19500,0942,00,2010/11/26 19:59:33.744 GMT+1,online 3 100001,unpaid,schoolfee,3816951290712593757,,2010,0,BTECHBDT,19500,0942,Z0,2010-11-25 20:16:33.757 GMT+1,online 4 ,paid,schoolfee,p1266236341955,3,2009,19500,BTECHBDT,19500,0615,00,2010/02/15 13:19:01,online -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_catalog.py
r8082 r8244 79 79 payment.p_category = 'schoolfee' 80 80 payment.p_state = 'paid' 81 payment.r_pay_reference = u'GTB|WEB|FUT'82 81 self.student['payments'][payment.p_id] = payment 83 82 return … … 218 217 'payments']['p1234567890'] 219 218 220 def test_search_by_reference(self):221 # We can find a payment ticket by parts of the response reference222 cat = queryUtility(ICatalog, name='payments_catalog')223 results = cat.searchResults(r_pay_reference='GTB')224 results = [x for x in results] # Turn results generator into list225 assert len(results) == 1226 assert results[0] is self.app['students'][self.student_id][227 'payments']['p1234567890']228 229 219 def test_reindex(self): 230 220 # We can reindex any kind of catalog with the updateIndexes method.
Note: See TracChangeset for help on using the changeset viewer.