From 5aeeb809151a6e98ef52522aef48acaa57af0502 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Fri, 19 Sep 2014 12:15:59 +0200 Subject: [PATCH] Fix assertion. --HG-- extra : amend_source : 6d240dcaf7da6ecb618e6285c823fcc0387201d3 --- cron_run_manually/tests/correct_uid.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron_run_manually/tests/correct_uid.yml b/cron_run_manually/tests/correct_uid.yml index 34af0c227..d63294125 100644 --- a/cron_run_manually/tests/correct_uid.yml +++ b/cron_run_manually/tests/correct_uid.yml @@ -19,5 +19,5 @@ function: _current_uid - I execute the cron job manually to check its running UID -- !assert {model: ir.cron, id: check_uid_job}: | - self.run_manually()[0] == self.user_id +- !python {model: ir.cron, id: check_uid_job}: | + assert self.run_manually()[0] == self.user_id.id, "Wrong UID in cron job"