Commit e35e54c9 authored by Romain Courteaud's avatar Romain Courteaud 🐙

slapos_cloud: XXX TODO probably to fixup a revert commit

parent 10a2d4e0
...@@ -676,7 +676,10 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin): ...@@ -676,7 +676,10 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
self.assertEqual(person.getUserId(), person_user_id) self.assertEqual(person.getUserId(), person_user_id)
subscription_request = self.checkServiceSubscriptionRequest(instance_tree, 'submitted') subscription_request = self.checkServiceSubscriptionRequest(instance_tree, 'submitted')
self.assertEqual(subscription_request.getTotalPrice(), deposit_amount) self.assertEqual(
subscription_request.getTotalPrice() - person.Entity_getDepositBalanceAmount([subscription_request]),
deposit_amount
)
self.tic() self.tic()
...@@ -689,7 +692,7 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin): ...@@ -689,7 +692,7 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
# Ensure to pay from the website # Ensure to pay from the website
outstanding_amount = self.web_site.restrictedTraverse(outstanding_amount_list[0].getRelativeUrl()) outstanding_amount = self.web_site.restrictedTraverse(outstanding_amount_list[0].getRelativeUrl())
outstanding_amount.Base_createExternalPaymentTransactionFromOutstandingAmountAndRedirect() outstanding_amount.Base_createExternalPaymentTransactionFromOutstandingAmountAndRedirect()
person.REQUEST.set('Entity_addDepositPayment_%s' % person.getUid(), None)
self.tic() self.tic()
self.logout() self.logout()
self.login() self.login()
......
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