Commit 1c564eb0 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_trade: improve assertion error message to identify run case

parent 839c47c7
...@@ -1324,7 +1324,11 @@ class TestResource(ERP5TypeTestCase): ...@@ -1324,7 +1324,11 @@ class TestResource(ERP5TypeTestCase):
resource_value=product, resource_value=product,
quantity=quantity, quantity=quantity,
) )
self.assertEqual(price, sale_order_line.getPrice()) self.assertEqual(
price, sale_order_line.getPrice(),
"quantity: %s | price: %s, sale_order_line.getPrice(): %s," % (
quantity, price, sale_order_line.getPrice()
))
self.assertEqual( self.assertEqual(
total_price, total_price,
round(sale_order_line.getTotalPrice(), currency.getQuantityPrecision()) round(sale_order_line.getTotalPrice(), currency.getQuantityPrecision())
......
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