Commit cdce3c17 authored by Łukasz Nowak's avatar Łukasz Nowak

Payments are created in confirmed state.

parent a69636a0
......@@ -100,13 +100,15 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
'\n'.join([q for q in difflib.unified_diff(expected.split('\n'),
sequence['payment_page'].split('\n'))]))
def stepCallStartPaymentOnPlannedPayment(self, sequence, **kw):
def stepCallStartPaymentOnConfirmedPayment(self, sequence, **kw):
current_skin = self.app.REQUEST.get('portal_skin', 'View')
try:
self.changeSkin('Hosting')
sequence['payment'] = self.portal.portal_catalog.getResultValue(
portal_type="Payment Transaction", simulation_state="planned")
sequence['payment_page'] = sequence['payment'].__of__(self.portal.web_site_module.hosting).AccountingTransaction_startPayment()
portal_type="Payment Transaction", simulation_state="confirmed")
sequence['payment_page'] = sequence['payment'].__of__(
self.portal.web_site_module.hosting
).AccountingTransaction_startPayment()
finally:
self.changeSkin(current_skin)
......@@ -119,7 +121,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginWebUser \
CallStartPaymentOnPlannedPayment \
CallStartPaymentOnConfirmedPayment \
CleanTic \
Logout \
LoginERP5TypeTestCase \
......@@ -159,7 +161,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginWebUser \
CallStartPaymentOnPlannedPayment \
CallStartPaymentOnConfirmedPayment \
CleanTic \
Logout \
LoginERP5TypeTestCase \
......
453
\ No newline at end of file
454
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment