summaryrefslogtreecommitdiff
path: root/addons/event/tests
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@openerp.com>2016-12-06 08:53:31 +0100
committerFabien Pinckaers <fp@openerp.com>2016-12-06 08:53:31 +0100
commitb048d1154fa78c6589fd2bf815d028dc0d87d427 (patch)
tree3f8b02f8f62573dbe7c41aee99df37ce85a892df /addons/event/tests
parentec2354a56880c51ada4eb59a6123815c92e9e5e5 (diff)
[FIX] event: test scenario, removing this month, which can be too vague for a short term date
Diffstat (limited to 'addons/event/tests')
-rw-r--r--addons/event/tests/test_event_flow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/event/tests/test_event_flow.py b/addons/event/tests/test_event_flow.py
index 449d295674c..32a722efd85 100644
--- a/addons/event/tests/test_event_flow.py
+++ b/addons/event/tests/test_event_flow.py
@@ -137,7 +137,7 @@ class TestEventFlow(TestEventCommon):
self.assertEqual(self.event_0.registration_ids.get_date_range_str(), u'in 2 days')
self.mock_datetime.now.return_value = Datetime.to_string(datetime.datetime(2015, 12, 10, 12, 0))
- self.event_0.registration_ids.event_begin_date = datetime.datetime(2015, 12, 31, 6, 0)
- self.assertEqual(self.event_0.registration_ids.get_date_range_str(), u'this month')
+ self.event_0.registration_ids.event_begin_date = datetime.datetime(2016, 1, 25, 6, 0)
+ self.assertEqual(self.event_0.registration_ids.get_date_range_str(), u'next month')
self.patcher.stop()