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): ...@@ -100,13 +100,15 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
'\n'.join([q for q in difflib.unified_diff(expected.split('\n'), '\n'.join([q for q in difflib.unified_diff(expected.split('\n'),
sequence['payment_page'].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') current_skin = self.app.REQUEST.get('portal_skin', 'View')
try: try:
self.changeSkin('Hosting') self.changeSkin('Hosting')
sequence['payment'] = self.portal.portal_catalog.getResultValue( sequence['payment'] = self.portal.portal_catalog.getResultValue(
portal_type="Payment Transaction", simulation_state="planned") portal_type="Payment Transaction", simulation_state="confirmed")
sequence['payment_page'] = sequence['payment'].__of__(self.portal.web_site_module.hosting).AccountingTransaction_startPayment() sequence['payment_page'] = sequence['payment'].__of__(
self.portal.web_site_module.hosting
).AccountingTransaction_startPayment()
finally: finally:
self.changeSkin(current_skin) self.changeSkin(current_skin)
...@@ -119,7 +121,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin): ...@@ -119,7 +121,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\ sequence_string = self.register_new_user_sequence_string + '\
LoginWebUser \ LoginWebUser \
CallStartPaymentOnPlannedPayment \ CallStartPaymentOnConfirmedPayment \
CleanTic \ CleanTic \
Logout \ Logout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
...@@ -159,7 +161,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin): ...@@ -159,7 +161,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\ sequence_string = self.register_new_user_sequence_string + '\
LoginWebUser \ LoginWebUser \
CallStartPaymentOnPlannedPayment \ CallStartPaymentOnConfirmedPayment \
CleanTic \ CleanTic \
Logout \ Logout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
......
453 454
\ No newline at end of file \ 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