Ignore:
Timestamp:
17 Mar 2013, 08:40:59 (12 years ago)
Author:
Henrik Bettermann
Message:

Use better class names. The PaymentWebservice? adapter is not a webservice. KofaPaymentRequest? is not a request but a view for a simple web service.

We do not publish the data of the payee but of the payer.

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/test_browser.py

    r10016 r10030  
    3838from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    3939from waeup.kofa.app import University
    40 from waeup.kofa.payments.interfaces import IPaymentWebservice
     40from waeup.kofa.payments.interfaces import IPayer
    4141from waeup.kofa.students.interfaces import IStudentsUtils
    4242from waeup.kofa.students.student import Student
     
    23132313        self.assertEqual(self.student['payments'][value].p_level, 200)
    23142314
    2315         # Student is the payee of the payment ticket.
    2316         webservice = IPaymentWebservice(self.student['payments'][value])
    2317         self.assertEqual(webservice.display_fullname, 'Anna Tester')
    2318         self.assertEqual(webservice.id, self.student_id)
    2319         self.assertEqual(webservice.faculty, 'fac1')
    2320         self.assertEqual(webservice.department, 'dep1')
     2315        # Student is the payer of the payment ticket.
     2316        payer = IPayer(self.student['payments'][value])
     2317        self.assertEqual(payer.display_fullname, 'Anna Tester')
     2318        self.assertEqual(payer.id, self.student_id)
     2319        self.assertEqual(payer.faculty, 'fac1')
     2320        self.assertEqual(payer.department, 'dep1')
    23212321
    23222322        # We simulate the approval
     
    27952795
    27962796class PublicPagesTests(StudentsFullSetup):
    2797     # Tests for swebservices
     2797    # Tests for simple webservices
    27982798
    27992799    layer = FunctionalLayer
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_payment.py

    r9533 r10030  
    2323from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    2424from waeup.kofa.students.payments import (
    25     StudentOnlinePayment, StudentOnlinePaymentFactory, PaymentWebservice)
    26 from waeup.kofa.payments.interfaces import IOnlinePayment, IPaymentWebservice
     25    StudentOnlinePayment, StudentOnlinePaymentFactory, Payer)
     26from waeup.kofa.payments.interfaces import IOnlinePayment, IPayer
    2727from waeup.kofa.students.interfaces import IStudentNavigation
    2828
     
    4949        assert implemented_by.isOrExtends(IStudentNavigation)
    5050
    51     def test_webservice_interface(self):
    52         verify.verifyClass(IPaymentWebservice, PaymentWebservice)
     51    def test_payer_interface(self):
     52        verify.verifyClass(IPayer, Payer)
Note: See TracChangeset for help on using the changeset viewer.