Fix tests.

This commit is contained in:
Albert Cervera i Areny 2018-05-31 22:50:11 +02:00
parent 25b85774a7
commit d77da8fce8
2 changed files with 10 additions and 10 deletions

View file

@ -74,11 +74,11 @@ Create an inventory::
>>> inventory.location = storage_loc
>>> line = inventory.lines.new()
>>> line.product = product
>>> line.expected_quantity
0.0
>>> line.expected_quantity == 0.0
True
>>> line.lot = lot
>>> line.expected_quantity
0.0
>>> line.expected_quantity == 0.0
True
Fill storage::
@ -122,5 +122,5 @@ Create an inventory and check expected quantity is computed::
>>> line, = inventory.lines
>>> line.expected_quantity
1.0
>>> line.quantity
0.0
>>> line.quantity == 0.0
True

View file

@ -64,8 +64,8 @@ Create an inventory::
>>> inventory.location = storage_loc
>>> line = inventory.lines.new()
>>> line.product = product
>>> line.expected_quantity
0.0
>>> line.expected_quantity == 0.0
True
Fill storage::
@ -94,5 +94,5 @@ Create an inventory and check expected quantity is computed::
>>> line, = inventory.lines
>>> line.expected_quantity
1.0
>>> line.quantity
0.0
>>> line.quantity == 0.0
True