From 23e2a14b2ceb91ebd4d796b913a0f1e9858d534f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 21 Mar 2014 23:43:02 +0100 Subject: [PATCH] Test must not rely on being run all the same day issue3769 review4471002 --- tests/scenario_production.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/scenario_production.rst b/tests/scenario_production.rst index 4417ea747b..c161c5a17f 100644 --- a/tests/scenario_production.rst +++ b/tests/scenario_production.rst @@ -183,14 +183,14 @@ Make a production:: >>> production.reload() >>> all(i.state == 'done' for i in production.inputs) True - >>> all(i.effective_date == today for i in production.inputs) - True + >>> len(set(i.effective_date == today for i in production.inputs)) + 1 >>> Production.done([production.id], config.context) >>> production.reload() >>> output, = production.outputs >>> output.state u'done' - >>> output.effective_date == today + >>> output.effective_date == production.effective_date True >>> config._context['locations'] = [storage.id] >>> product.reload()