From 5b0cc76a3d45bb847a23466bef7b461a7a2370e2 Mon Sep 17 00:00:00 2001 From: Grey Li Date: Tue, 21 Apr 2020 11:18:12 +0800 Subject: [PATCH] Update test and changlog for enctype fix --- CHANGES.rst | 5 +++++ test_bootstrap_flask.py | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index d803a870..580c6ed1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,11 @@ Changelog ========== +1.3.0 +------ + +- Fix ``enctype`` attribute setting for WTForms ``MultipleFileField``. + 1.2.0 ------ diff --git a/test_bootstrap_flask.py b/test_bootstrap_flask.py index 1daa748c..39ea0152 100644 --- a/test_bootstrap_flask.py +++ b/test_bootstrap_flask.py @@ -2,7 +2,7 @@ from flask import Flask, render_template_string, current_app, request, flash from flask_wtf import FlaskForm -from wtforms import StringField, SubmitField, BooleanField, PasswordField +from wtforms import StringField, SubmitField, BooleanField, PasswordField, FileField, MultipleFileField from wtforms.validators import DataRequired, Length from flask_bootstrap import Bootstrap @@ -328,3 +328,35 @@ def test_dismiss_animate(): self.assertIn('alert-dismissible', data) self.assertIn('