changeset c8d3e4f9b0fb in modules/account_payment_stripe:default
details:
https://hg.tryton.org/modules/account_payment_stripe?cmd=changeset;node=c8d3e4f9b0fb
description:
Search cron by method name
issue8201
diffstat:
tests/scenario_account_payment_stripe.rst | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (23 lines):
diff -r b21c0e9db3ce -r c8d3e4f9b0fb tests/scenario_account_payment_stripe.rst
--- a/tests/scenario_account_payment_stripe.rst Fri Apr 12 15:59:24 2019 +0200
+++ b/tests/scenario_account_payment_stripe.rst Fri Apr 12 16:48:49 2019 +0200
@@ -164,8 +164,7 @@
>>> Cron = Model.get('ir.cron')
>>> cron_customer_create, = Cron.find([
- ... ('model', '=', 'account.payment.stripe.customer'),
- ... ('function', '=', 'stripe_create'),
+ ... ('method', '=', 'account.payment.stripe.customer|stripe_create'),
... ])
>>> cron_customer_create.companies.append(Company(company.id))
>>> cron_customer_create.click('run_once')
@@ -201,8 +200,7 @@
Run cron::
>>> cron_customer_delete, = Cron.find([
- ... ('model', '=', 'account.payment.stripe.customer'),
- ... ('function', '=', 'stripe_delete'),
+ ... ('method', '=', 'account.payment.stripe.customer|stripe_delete'),
... ])
>>> cron_customer_delete.companies.append(Company(company.id))
>>> cron_customer_delete.click('run_once')