Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed May 17, 2018
1 parent 18c7f4b commit 24aef53
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions plone/app/z3cform/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def test_data_converter__timezone_callback(self):
dt = datetime(2013, 11, 13, 10, 20)
setattr(context, self.field.getName(), dt)
self.widget.context = context
self.widget.default_timezone = lambda(context): 'Europe/Amsterdam'
self.widget.default_timezone = lambda context: 'Europe/Amsterdam'
tz = pytz.timezone('Europe/Amsterdam')

converter = DatetimeWidgetConverter(self.field, self.widget)
Expand Down Expand Up @@ -1034,7 +1034,7 @@ def test_widget(self):
'patternAjaxSelectOptions': None,
'patternDateOptions': None,
'patternRelateditemsOptions': None,
},
},
},
widget._base_args()
)
Expand Down Expand Up @@ -1238,7 +1238,11 @@ def test_converter_List_of_Choice(self):
List(value_type=Choice(values=['one', 'two', 'three']))
)
for field in fields:
expected_value_type = getattr(field.value_type, '_type', six.text_type)
expected_value_type = getattr(
field.value_type,
'_type',
six.text_type
)
if expected_value_type is None:
expected_value_type = six.text_type
widget = Mock(separator=';')
Expand Down

0 comments on commit 24aef53

Please sign in to comment.