Skip to content

Commit

Permalink
Test fixes for plone.app.widgets 2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Feb 9, 2017
1 parent 6d92326 commit f2f829c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ New features:

Bug fixes:

- Test fixes for plone.app.widgets 2.1.
[thet]

- remove deprecated __of__ for browserviews
[pbauer]

Expand Down
13 changes: 6 additions & 7 deletions plone/app/z3cform/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def test_widget(self):
'firstDay': 0,
'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',
u'April', u'May', u'June', u'July',
Expand All @@ -175,14 +174,15 @@ def test_widget(self):
'weekdaysFull': [u'Sunday', u'Monday', u'Tuesday',
u'Wednesday', u'Thursday', u'Friday',
u'Saturday'],
'today': u'Today',
'selectYears': 200,
'placeholder': u'Enter date...',
'monthsShort': [u'Jan', u'Feb', u'Mar', u'Apr', u'May',
u'Jun', u'Jul', u'Aug', u'Sep', u'Oct',
u'Nov', u'Dec']
},
'time': False
'time': False,
'today': u'Today',
'clear': u'Clear',
}
},
self.widget._base_args(),
Expand Down Expand Up @@ -258,7 +258,6 @@ def test_widget(self):
'firstDay': 0,
'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',
u'April', u'May', u'June', u'July',
Expand All @@ -269,7 +268,6 @@ def test_widget(self):
'weekdaysFull': [u'Sunday', u'Monday', u'Tuesday',
u'Wednesday', u'Thursday', u'Friday',
u'Saturday'],
'today': u'Today',
'selectYears': 200,
'placeholder': u'Enter date...',
'monthsShort': [u'Jan', u'Feb', u'Mar', u'Apr', u'May',
Expand All @@ -278,10 +276,11 @@ def test_widget(self):
},
'time': {
'placeholder': u'Enter time...',
'today': u'Today',
'format': 'h:i a',
'interval': 15
}
},
'today': u'Today',
'clear': u'Clear',
}
},
self.widget._base_args(),
Expand Down

0 comments on commit f2f829c

Please sign in to comment.