Skip to content

Commit

Permalink
Fix flake8 and ready to release 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed May 30, 2020
1 parent 6826895 commit 34e7273
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog
1.3.2
------

Release data: 2020/5/30

- Support display error message for ``RadioField`` and ``BooleanField``, display description for ``RadioField``.


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name='Bootstrap-Flask',
version='1.3.1',
version='1.3.2',
url='https://github.com/greyli/bootstrap-flask',
license='MIT',
author='Grey Li',
Expand Down
6 changes: 3 additions & 3 deletions test_bootstrap_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,8 @@ def test_button_map():
def test_error_message_for_radiofield_and_booleanfield(self):
class TestForm(FlaskForm):
remember = BooleanField('Remember me', validators=[DataRequired()])
option = RadioField(choices=[('dog', 'Dog'), ('cat', 'Cat'), ('bird', 'Bird'), ('alien', 'Alien')], validators=[DataRequired()])

option = RadioField(choices=[('dog', 'Dog'), ('cat', 'Cat'), ('bird', 'Bird'), ('alien', 'Alien')],
validators=[DataRequired()])

@self.app.route('/error', methods=['GET', 'POST'])
def error():
Expand All @@ -494,4 +494,4 @@ def error():
response = self.client.post('/error', follow_redirects=True)
data = response.get_data(as_text=True)
self.assertIn('This field is required', data)
self.assertIn('Not a valid choice', data)
self.assertIn('Not a valid choice', data)

0 comments on commit 34e7273

Please sign in to comment.