changeset 6e10d22625db in modules/account_payment_sepa:default
details: 
https://hg.tryton.org/modules/account_payment_sepa?cmd=changeset;node=6e10d22625db
description:
        Add model, record and records attribute on Wizard

        issue9421
        review309861012
diffstat:

 tests/test_account_payment_sepa.py |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r f47885505714 -r 6e10d22625db tests/test_account_payment_sepa.py
--- a/tests/test_account_payment_sepa.py        Thu Jun 04 11:13:25 2020 +0100
+++ b/tests/test_account_payment_sepa.py        Tue Jul 07 23:56:09 2020 +0200
@@ -132,7 +132,8 @@
 
         session_id, _, _ = ProcessPayment.create()
         process_payment = ProcessPayment(session_id)
-        with Transaction().set_context(active_ids=[payment.id]):
+        with Transaction().set_context(
+                active_model=Payment.__name__, active_ids=[payment.id]):
             _, data = process_payment.do_process(None)
         group, = PaymentGroup.browse(data['res_id'])
         message, = group.sepa_messages
@@ -312,7 +313,8 @@
 
             session_id, _, _ = ProcessPayment.create()
             process_payment = ProcessPayment(session_id)
-            with Transaction().set_context(active_ids=[payment.id]):
+            with Transaction().set_context(
+                    active_model=Payment.__name__, active_ids=[payment.id]):
                 _, data = process_payment.do_process(None)
 
             self.assertEqual(payment.sepa_mandate_sequence_type, 'FRST')
@@ -341,7 +343,8 @@
             session_id, _, _ = ProcessPayment.create()
             process_payment = ProcessPayment(session_id)
             payment_ids = [p.id for p in payments]
-            with Transaction().set_context(active_ids=payment_ids):
+            with Transaction().set_context(
+                    active_model=Payment.__name__, active_ids=payment_ids):
                 _, data = process_payment.do_process(None)
 
             for payment in payments:

Reply via email to