Commit 903b7db7 authored by Jérome Perrin's avatar Jérome Perrin

configurator_standard: fix randomness in test

This test was comparing lines returned in unspecified order, sort the lines
to be sure.
parent 239b59f0
Pipeline #13736 failed with stage
in 0 seconds
...@@ -1212,10 +1212,10 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin): ...@@ -1212,10 +1212,10 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self.assertEqual(sale_invoice.getDivergenceList(), []) self.assertEqual(sale_invoice.getDivergenceList(), [])
self.assertEqual( self.assertEqual(
[ sorted([
(m.getQuantity(), m.getPrice(), m.getResourceValue()) (m.getQuantity(), m.getPrice(), m.getResourceValue())
for m in sale_invoice.getMovementList() for m in sale_invoice.getMovementList()
], [ ]), [
(7, 10, resource), (7, 10, resource),
(70, 0.03, vat_service), (70, 0.03, vat_service),
]) ])
...@@ -1471,10 +1471,10 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin): ...@@ -1471,10 +1471,10 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self.assertEqual(purchase_invoice.getDivergenceList(), []) self.assertEqual(purchase_invoice.getDivergenceList(), [])
self.assertEqual( self.assertEqual(
[ sorted([
(m.getQuantity(), m.getPrice(), m.getResourceValue()) (m.getQuantity(), m.getPrice(), m.getResourceValue())
for m in purchase_invoice.getMovementList() for m in purchase_invoice.getMovementList()
], [ ]), [
(7, 10, resource), (7, 10, resource),
(70, 0.03, vat_service), (70, 0.03, vat_service),
]) ])
......
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