Commit 941c3dd7 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: stabilize test

parent 5e387dd2
...@@ -928,8 +928,11 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin): ...@@ -928,8 +928,11 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
# Check accounting # Check accounting
transaction_list = self.portal.account_module.receivable.Account_getAccountingTransactionList(mirror_section_uid=public_person.getUid()) transaction_list = self.portal.account_module.receivable.Account_getAccountingTransactionList(mirror_section_uid=public_person.getUid())
assert len(transaction_list) == 2, len(transaction_list) assert len(transaction_list) == 2, len(transaction_list)
assert transaction_list[0].total_price == 990.0, transaction_list[0].total_price self.assertSameSet(
assert transaction_list[1].total_price == -990.0, transaction_list[1].total_price [x.total_price for x in transaction_list],
[990.0, -990.0],
[x.total_price for x in transaction_list]
)
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