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/applicants/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r9929 r10030  
    3737from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    3838from waeup.kofa.app import University
    39 from waeup.kofa.payments.interfaces import IPaymentWebservice
     39from waeup.kofa.payments.interfaces import IPayer
    4040from waeup.kofa.configuration import SessionConfiguration
    4141from waeup.kofa.applicants.container import ApplicantsContainer
     
    758758        self.assertEqual(payment.p_category,'application')
    759759        self.assertEqual(payment.amount_auth,200.0)
    760         # Applicant is payee of the payment ticket.
     760        # Applicant is payer of the payment ticket.
    761761        self.assertEqual(
    762             IPaymentWebservice(payment).display_fullname, 'John Anthony Tester')
     762            IPayer(payment).display_fullname, 'John Anthony Tester')
    763763        self.assertEqual(
    764             IPaymentWebservice(payment).id, self.applicant.applicant_id)
    765         self.assertEqual(IPaymentWebservice(payment).faculty, '')
    766         self.assertEqual(IPaymentWebservice(payment).department, '')
     764            IPayer(payment).id, self.applicant.applicant_id)
     765        self.assertEqual(IPayer(payment).faculty, '')
     766        self.assertEqual(IPayer(payment).department, '')
    767767        # The pdf payment slip can't yet be opened
    768768        #self.browser.open(payment_url + '/payment_receipt.pdf')
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_payment.py

    r9533 r10030  
    2222from zope.interface import verify
    2323from waeup.kofa.applicants.payment import (
    24     ApplicantOnlinePayment, ApplicantOnlinePaymentFactory, PaymentWebservice)
    25 from waeup.kofa.payments.interfaces import IOnlinePayment, IPaymentWebservice
     24    ApplicantOnlinePayment, ApplicantOnlinePaymentFactory, Payer)
     25from waeup.kofa.payments.interfaces import IOnlinePayment, IPayer
    2626
    2727class ApplicantOnlinePaymentFactoryTest(unittest.TestCase):
     
    3939        assert implemented_by.isOrExtends(IOnlinePayment)
    4040
    41     def test_webservice_interface(self):
    42         verify.verifyClass(IPaymentWebservice, PaymentWebservice)
     41    def test_payer_interface(self):
     42        verify.verifyClass(IPayer, Payer)
Note: See TracChangeset for help on using the changeset viewer.