Commit 1b69a7e6 authored by Łukasz Nowak's avatar Łukasz Nowak

Start implemnetation of case with PayZen communication.

parent d843ae04
...@@ -149,8 +149,34 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin): ...@@ -149,8 +149,34 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def stepCheckPlannedRegisteredPayment(self, sequence):
self.assertEqual(sequence['payment'].getSimulationState(), 'confirmed')
self.assertEqual(self.portal.portal_catalog.countResults(portal_type='Payzen Event',
default_destination_uid=sequence['payment'].getUid(),
limit=3)[0][0], 2)
raise NotImplementedError('Not finished checks.')
def test_PaymentTransaction_updateStatus_planned_registered(self): def test_PaymentTransaction_updateStatus_planned_registered(self):
raise NotImplementedError sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginWebUser \
CallStartPaymentOnPlannedPayment \
CleanTic \
Logout \
LoginERP5TypeTestCase \
CheckPaymentPage \
CleanTic \
CheckRelatedSystemEvent \
Logout \
LoginWebUser \
CallUpdateStatusOnPlannedPayment \
CleanTic \
Logout \
LoginERP5TypeTestCase \
CheckPlannedRegisteredPayment \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_PaymentTransaction_updateStatus_confirmed_no_change(self): def test_PaymentTransaction_updateStatus_confirmed_no_change(self):
raise NotImplementedError raise NotImplementedError
......
451 452
\ 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