changeset 1f42243307b6 in modules/sale_secondary_unit:default
details: 
https://hg.tryton.org/modules/sale_secondary_unit?cmd=changeset;node=1f42243307b6
description:
        Add line without product on test scenario

        issue9774
        review324391002
diffstat:

 tests/scenario_sale_secondary_unit.rst |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 4b1e78aa9ddc -r 1f42243307b6 tests/scenario_sale_secondary_unit.rst
--- a/tests/scenario_sale_secondary_unit.rst    Mon Nov 02 09:48:22 2020 +0100
+++ b/tests/scenario_sale_secondary_unit.rst    Mon Nov 02 09:49:34 2020 +0100
@@ -72,6 +72,9 @@
     >>> sale = Sale()
     >>> sale.party = customer
     >>> line = sale.lines.new()
+    >>> line.type = 'comment'
+    >>> line.description = 'Comment'
+    >>> line = sale.lines.new()
     >>> line.product = product
     >>> line.quantity = 10
 
@@ -106,7 +109,7 @@
 Check secondary unit on invoice::
 
     >>> invoice, = sale.invoices
-    >>> line, = invoice.lines
+    >>> _, line = invoice.lines
     >>> line.secondary_unit == kg
     True
     >>> line.secondary_quantity

Reply via email to