From c4dcad1a8eb14ccbebee607ec9fe83da7f6c9918 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 28 Sep 2017 13:33:49 +0200 Subject: [PATCH] Cast number_next to int on renew fiscalyear scenario number_next is stored as long on Postgresql so it must be casted to compare issue6283 review37721002 --- tests/scenario_renew_fiscalyear.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scenario_renew_fiscalyear.rst b/tests/scenario_renew_fiscalyear.rst index a46ed1858b..69c41f8d3c 100644 --- a/tests/scenario_renew_fiscalyear.rst +++ b/tests/scenario_renew_fiscalyear.rst @@ -49,7 +49,7 @@ Renew fiscalyear using the wizard:: >>> new_fiscalyear, = renew_fiscalyear.actions[0] >>> len(new_fiscalyear.periods) 12 - >>> new_fiscalyear.post_move_sequence.number_next + >>> int(new_fiscalyear.post_move_sequence.number_next) 10 Renew fiscalyear resetting sequences:: @@ -58,5 +58,5 @@ Renew fiscalyear resetting sequences:: >>> renew_fiscalyear.form.reset_sequences = True >>> renew_fiscalyear.execute('create_') >>> new_fiscalyear, = renew_fiscalyear.actions[0] - >>> new_fiscalyear.post_move_sequence.number_next + >>> int(new_fiscalyear.post_move_sequence.number_next) 1