Commit 07fd88e9 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: fixup

parent 825c5b68
......@@ -151,7 +151,7 @@ class TestSlapOSSubscriptionChangeRequestScenario(TestSlapOSSubscriptionChangeRe
inventory_list = self.portal.portal_simulation.getCurrentInventoryList(**inventory_list_kw)
self.assertEquals(1, len(inventory_list))
# 1 - 0.42 (13 days of 31) - 0.1 (3 days of 31) + 1 - 0.83 (24 days of 29)
self.assertEquals(-0.65, inventory_list[0].total_quantity)
self.assertAlmostEquals(-0.65, inventory_list[0].total_quantity)
inventory_list_kw = {
'group_by_section': False,
......@@ -173,13 +173,13 @@ class TestSlapOSSubscriptionChangeRequestScenario(TestSlapOSSubscriptionChangeRe
# 7 open sale order
# 4 assignment
# 3 simulation movement
# 4 sale packing list / line
# 6 sale packing list / line
# 2 sale trade condition ( a 3rd trade condition is not linked to the project)
# 1 software instance
# 1 software product
# 1 subscription change request
# 2 subscription request
self.assertRelatedObjectCount(project, 28)
self.assertRelatedObjectCount(project, 30)
with PinnedDateTime(self, DateTime('2024/02/15')):
self.checkERP5StateBeforeExit()
......
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