Changed '%s' % value pattern to str(value).

This commit is contained in:
Nick Pope 2020-05-01 15:54:15 +01:00 committed by Mariusz Felisiak
parent 7668f9bce9
commit 8f10ceaa90
13 changed files with 36 additions and 35 deletions

View file

@ -1756,7 +1756,7 @@ class TestModelFormsetOverridesTroughFormMeta(TestCase):
PoetFormSet = modelformset_factory(Poet, fields="__all__", widgets=widgets)
form = PoetFormSet.form()
self.assertHTMLEqual(
"%s" % form['name'],
str(form['name']),
'<input id="id_name" maxlength="100" type="text" class="poet" name="name" required>'
)
@ -1767,7 +1767,7 @@ class TestModelFormsetOverridesTroughFormMeta(TestCase):
BookFormSet = inlineformset_factory(Author, Book, widgets=widgets, fields="__all__")
form = BookFormSet.form()
self.assertHTMLEqual(
"%s" % form['title'],
str(form['title']),
'<input class="book" id="id_title" maxlength="100" name="title" type="text" required>'
)