[Testbot] Plone 5.0 - Python 2.7 - Build # 3899 - Fixed! - 0 failure(s)

jenkins at plone.org jenkins at plone.org
Fri Jan 2 10:07:45 UTC 2015


-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 3899 - Fixed!
-------------------------------------------------------------------------------

http://jenkins.plone.org/job/plone-5.0-python-2.7/3899/


-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------

Repository: plone.app.widgets
Branch: refs/heads/master
Date: 2015-01-02T10:21:50+01:00
Author: Philip Bauer (pbauer) <bauer at starzel.de>
Commit: https://github.com/plone/plone.app.widgets/commit/8a03c5aa0ce5b5b89210c236e8c36e3f90b8b8fd

fix tests

Files changed:
M plone/app/widgets/tests/test_at.py
M plone/app/widgets/tests/test_dx.py

diff --git a/plone/app/widgets/tests/test_at.py b/plone/app/widgets/tests/test_at.py
index 42272d5..d8b164b 100644
--- a/plone/app/widgets/tests/test_at.py
+++ b/plone/app/widgets/tests/test_at.py
@@ -81,6 +81,7 @@ def setUp(self):
         self.widget = DateWidget()
 
     def test_widget(self):
+        current_year = datetime.today().year
         self.assertEqual(
             {
                 'pattern': 'pickadate',
@@ -89,8 +90,8 @@ def test_widget(self):
                 'pattern_options': {
                     'date': {
                         'firstDay': 0,
-                        'min': [1914, 1, 1],
-                        'max': [2034, 1, 1],
+                        'min': [current_year - 100, 1, 1],
+                        'max': [current_year + 20, 1, 1],
                         'clear': u'Clear',
                         'format': 'mmmm d, yyyy',
                         'monthsFull': [u'January', u'February', u'March',
@@ -140,6 +141,7 @@ def setUp(self):
         self.widget = DatetimeWidget()
 
     def test_widget(self):
+        current_year = datetime.today().year
         self.assertEqual(
             {
                 'pattern': 'pickadate',
@@ -148,8 +150,8 @@ def test_widget(self):
                 'pattern_options': {
                     'date': {
                         'firstDay': 0,
-                        'min': [1914, 1, 1],
-                        'max': [2034, 1, 1],
+                        'min': [current_year - 100, 1, 1],
+                        'max': [current_year + 20, 1, 1],
                         'clear': u'Clear',
                         'format': 'mmmm d, yyyy',
                         'monthsFull': [u'January', u'February', u'March',
diff --git a/plone/app/widgets/tests/test_dx.py b/plone/app/widgets/tests/test_dx.py
index e263ac8..2c9595c 100644
--- a/plone/app/widgets/tests/test_dx.py
+++ b/plone/app/widgets/tests/test_dx.py
@@ -116,7 +116,7 @@ def setUp(self):
         self.widget.pattern_options = {'date': {'firstDay': 0}}
 
     def test_widget(self):
-        # TODO: fails on january first?
+        current_year = datetime.today().year
         self.assertEqual(
             {
                 'pattern': 'pickadate',
@@ -125,8 +125,8 @@ def test_widget(self):
                 'pattern_options': {
                     'date': {
                         'firstDay': 0,
-                        'min': [1914, 1, 1],
-                        'max': [2034, 1, 1],
+                        'min': [current_year - 100, 1, 1],
+                        'max': [current_year + 20, 1, 1],
                         'clear': u'Clear',
                         'format': 'mmmm d, yyyy',
                         'monthsFull': [u'January', u'February', u'March',
@@ -207,6 +207,7 @@ def setUp(self):
         self.widget.pattern_options = {'date': {'firstDay': 0}}
 
     def test_widget(self):
+        current_year = datetime.today().year
         self.assertEqual(
             {
                 'pattern': 'pickadate',
@@ -215,8 +216,8 @@ def test_widget(self):
                 'pattern_options': {
                     'date': {
                         'firstDay': 0,
-                        'min': [1914, 1, 1],
-                        'max': [2034, 1, 1],
+                        'min': [current_year - 100, 1, 1],
+                        'max': [current_year + 20, 1, 1],
                         'clear': u'Clear',
                         'format': 'mmmm d, yyyy',
                         'monthsFull': [u'January', u'February', u'March',




-------------------------------------------------------------------------------


More information about the Testbot mailing list