changeset 2ef0296f0cb3 in modules/account_payment_clearing:default
details: 
https://hg.tryton.org/modules/account_payment_clearing?cmd=changeset;node=2ef0296f0cb3
description:
        Update test scenario to new pay wizard states

        issue7915
diffstat:

 tests/scenario_account_negative_payment_clearing.rst |   3 ++-
 tests/scenario_account_payment_clearing.rst          |  15 ++++++++++-----
 2 files changed, 12 insertions(+), 6 deletions(-)

diffs (72 lines):

diff -r 69e9919e5311 -r 2ef0296f0cb3 
tests/scenario_account_negative_payment_clearing.rst
--- a/tests/scenario_account_negative_payment_clearing.rst      Thu Jan 17 
17:34:50 2019 +0100
+++ b/tests/scenario_account_negative_payment_clearing.rst      Thu Jan 17 
19:25:27 2019 +0100
@@ -83,8 +83,9 @@
     >>> Payment = Model.get('account.payment')
     >>> line, = [l for l in move.lines if l.account == payable]
     >>> pay_line = Wizard('account.move.line.pay', [line])
+    >>> pay_line.execute('next_')
     >>> pay_line.form.journal = payment_journal
-    >>> pay_line.execute('start')
+    >>> pay_line.execute('next_')
     >>> payment, = Payment.find([('state', '=', 'draft')])
     >>> payment.amount
     Decimal('50.00')
diff -r 69e9919e5311 -r 2ef0296f0cb3 tests/scenario_account_payment_clearing.rst
--- a/tests/scenario_account_payment_clearing.rst       Thu Jan 17 17:34:50 
2019 +0100
+++ b/tests/scenario_account_payment_clearing.rst       Thu Jan 17 19:25:27 
2019 +0100
@@ -91,8 +91,9 @@
     >>> Payment = Model.get('account.payment')
     >>> line, = [l for l in move.lines if l.account == payable]
     >>> pay_line = Wizard('account.move.line.pay', [line])
+    >>> pay_line.execute('next_')
     >>> pay_line.form.journal = payment_journal
-    >>> pay_line.execute('start')
+    >>> pay_line.execute('next_')
     >>> payment, = Payment.find()
     >>> payment.amount = Decimal('30.0')
     >>> payment.click('approve')
@@ -143,8 +144,9 @@
 
     >>> line, = [l for l in move.lines if l.account == payable]
     >>> pay_line = Wizard('account.move.line.pay', [line])
+    >>> pay_line.execute('next_')
     >>> pay_line.form.journal = payment_journal
-    >>> pay_line.execute('start')
+    >>> pay_line.execute('next_')
     >>> payment, = Payment.find([('state', '=', 'draft')])
     >>> payment.amount
     Decimal('50.00')
@@ -344,8 +346,9 @@
 
     >>> line, = [l for l in move.lines if l.account == payable]
     >>> pay_line = Wizard('account.move.line.pay', [line])
+    >>> pay_line.execute('next_')
     >>> pay_line.form.journal = euro_payment_journal
-    >>> pay_line.execute('start')
+    >>> pay_line.execute('next_')
     >>> payment, = Payment.find([('state', '=', 'draft')])
     >>> payment.amount
     Decimal('40.00')
@@ -384,8 +387,9 @@
     >>> Payment = Model.get('account.payment')
     >>> line, = [l for l in move.lines if l.account == receivable]
     >>> pay_line = Wizard('account.move.line.pay', [line])
+    >>> pay_line.execute('next_')
     >>> pay_line.form.journal = euro_payment_journal
-    >>> pay_line.execute('start')
+    >>> pay_line.execute('next_')
     >>> payment, = Payment.find([('state', '=', 'draft')])
     >>> payment.amount
     Decimal('100.0')
@@ -423,8 +427,9 @@
     >>> Payment = Model.get('account.payment')
     >>> line, = [l for l in move.lines if l.account == payable]
     >>> pay_line = Wizard('account.move.line.pay', [line])
+    >>> pay_line.execute('next_')
     >>> pay_line.form.journal = payment_journal
-    >>> pay_line.execute('start')
+    >>> pay_line.execute('next_')
     >>> payment, = Payment.find([('line', '=', line.id)])
     >>> payment.click('approve')
     >>> payment.state

Reply via email to