Ignore:
Timestamp:
22 Mar 2013, 12:59:13 (12 years ago)
Author:
Henrik Bettermann
Message:

Extend get_students_by_course and return school fee paid in that session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_webservices.py

    r10043 r10044  
    171171        self.assertEqual(result, None)
    172172        result = server.get_students_by_course('CRS1', '2012')
    173         self.assertEqual(result, [['K1000000', '234', 'my adviser'],])
     173        self.assertEqual(result, [['K1000000', '234', 'my adviser', 0],])
    174174        result = server.get_students_by_course('CRS1')
    175         self.assertEqual(result, [['K1000000', '234', 'my adviser'],])
     175        self.assertEqual(result, [['K1000000', '234', 'my adviser', 0],])
     176        payment = StudentOnlinePayment()
     177        payment.p_id = 'my-id'
     178        payment.p_session = 2012
     179        payment.amount_auth = 12.12
     180        payment.p_state = u'paid'
     181        self.student['payments']['my-payment'] = payment
     182        result = server.get_students_by_course('CRS1')
     183        self.assertEqual(result, [['K1000000', '234', 'my adviser', 12.12],])
    176184        REQUEST_XML="""\
    177185<?xml version="1.0"?>
     
    195203<value><string>234</string></value>
    196204<value><string>my adviser</string></value>
     205<value><double>12.12</double></value>
    197206</data></array></value>
    198207</data></array></value>
Note: See TracChangeset for help on using the changeset viewer.