Use comparison in doctest
doctest fails if we got an integer instead of float
This commit is contained in:
1 parent
2a205d6162
commit
f299d31492
1 file changed
+4
-4
@@ -185,8 +185,8 @@ Sale products with cost on shipment::
|
||||
>>> cost_line = sale.lines[-1]
|
||||
>>> cost_line.product == carrier_product
|
||||
True
|
||||
>>> cost_line.quantity
|
||||
1.0
|
||||
>>> cost_line.quantity == 1
|
||||
True
|
||||
>>> cost_line.amount == Decimal('3')
|
||||
True
|
||||
>>> sale.save()
|
||||
@@ -255,8 +255,8 @@ Sale products with cost on order::
|
||||
>>> cost_line = sale.lines[-1]
|
||||
>>> cost_line.product == carrier_product
|
||||
True
|
||||
>>> cost_line.quantity
|
||||
1.0
|
||||
>>> cost_line.quantity == 1
|
||||
True
|
||||
>>> cost_line.amount == Decimal('3')
|
||||
True
|
||||
>>> sale.save()
|
||||
|
||||
Reference in new issue
Block a user