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

slapos_erp5: limit test flakiness

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