Commit 63b69b21 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: test: PaymentTransaction_start has been dropped

parent ecca5c6b
...@@ -590,33 +590,3 @@ class TestSlapOSAccounting(SlapOSTestCaseMixin): ...@@ -590,33 +590,3 @@ class TestSlapOSAccounting(SlapOSTestCaseMixin):
self.assertIn('account_module/receivable', self.assertIn('account_module/receivable',
[i.getRelativeUrl() for i in account_list]) [i.getRelativeUrl() for i in account_list])
#################################################################
# PaymentTransaction_start
#################################################################
def test_PaymentTransaction_start(self):
sale_invoice_transaction = self.portal.accounting_module.newContent(
portal_type="Sale Invoice Transaction",
start_date=DateTime()
)
payment_transaction = self.portal.accounting_module.newContent(
portal_type="Payment Transaction",
start_date=DateTime()
)
self.assertRaises(Unauthorized,
payment_transaction.PaymentTransaction_start,
REQUEST=self.portal.REQUEST)
self.assertRaises(Unauthorized,
sale_invoice_transaction.PaymentTransaction_start,
REQUEST=self.portal.REQUEST)
self.assertRaises(Unauthorized,
sale_invoice_transaction.PaymentTransaction_start,
REQUEST=None)
payment_transaction.PaymentTransaction_start()
self.assertEqual("started",
payment_transaction.getSimulationState())
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