Commit 287456ae authored by Romain Courteaud's avatar Romain Courteaud

Put a more precise price value.

parent ced98592
...@@ -92,7 +92,7 @@ for movement in movement_list:\n ...@@ -92,7 +92,7 @@ for movement in movement_list:\n
price_currency=movement.getPriceCurrency()\n price_currency=movement.getPriceCurrency()\n
)\n )\n
if movement.getResource() == \'service_module/slapos_instance_subscription\':\n if movement.getResource() == \'service_module/slapos_instance_subscription\':\n
temp_movement.edit(price=0.84)\n temp_movement.edit(price=0.83612040133800003)\n
else:\n else:\n
temp_movement.edit(price=0.0)\n temp_movement.edit(price=0.0)\n
temp_movement_list.append(temp_movement)\n temp_movement_list.append(temp_movement)\n
......
...@@ -1542,7 +1542,7 @@ class TestSlapOSAggregatedDeliveryBuilder(testSlapOSMixin): ...@@ -1542,7 +1542,7 @@ class TestSlapOSAggregatedDeliveryBuilder(testSlapOSMixin):
built_update_line.getResource()) built_update_line.getResource())
self.assertEqual(1.0, built_subscription_line.getQuantity()) self.assertEqual(1.0, built_subscription_line.getQuantity())
self.assertEqual(0.84, built_subscription_line.getPrice()) self.assertAlmostEquals(0.836, built_subscription_line.getPrice(), 3)
self.assertEqual(subscription_line.getResource(), self.assertEqual(subscription_line.getResource(),
built_subscription_line.getResource()) built_subscription_line.getResource())
......
202 203
\ No newline at end of file \ No newline at end of file
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