From 34e7273a44724f98bd51eaf964b50f40543c2ea1 Mon Sep 17 00:00:00 2001 From: Grey Li Date: Sat, 30 May 2020 15:33:03 +0800 Subject: [PATCH] Fix flake8 and ready to release 1.3.2 --- CHANGES.rst | 2 ++ setup.py | 2 +- test_bootstrap_flask.py | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 218f8395..753aac84 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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``. diff --git a/setup.py b/setup.py index c2398849..60f38ab6 100644 --- a/setup.py +++ b/setup.py @@ -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', diff --git a/test_bootstrap_flask.py b/test_bootstrap_flask.py index 93069509..31cc0478 100644 --- a/test_bootstrap_flask.py +++ b/test_bootstrap_flask.py @@ -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(): @@ -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) \ No newline at end of file + self.assertIn('Not a valid choice', data)