Commit 2ac9e527 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: limit test flakiness

parent de457107
...@@ -777,9 +777,11 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin): ...@@ -777,9 +777,11 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
# Check accounting # Check accounting
transaction_list = self.portal.account_module.receivable.Account_getAccountingTransactionList(mirror_section_uid=customer_section_organisation.getUid()) transaction_list = self.portal.account_module.receivable.Account_getAccountingTransactionList(mirror_section_uid=customer_section_organisation.getUid())
assert len(transaction_list) == 2, len(transaction_list) self.assertSameSet(
assert transaction_list[0].total_price == 141.0, transaction_list[0].total_price [x.total_price for x in transaction_list],
assert transaction_list[1].total_price == -141.0, transaction_list[1].total_price [141.0, -141.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