Skip to content

Commit 98767ba

Browse files
UnknownPlatypussarahboyce
authored andcommitted
Fixed invalid HTML in test templates.
1 parent c41d6c9 commit 98767ba

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{ field.label_tag }}
2-
<p>Custom Field<p>
2+
<p>Custom Field</p>
33
{{ field }}

tests/forms_tests/tests/test_forms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5371,7 +5371,7 @@ class MyForm(Form):
53715371
f = MyForm()
53725372
self.assertHTMLEqual(
53735373
f.render(),
5374-
'<div><label for="id_first_name">First name:</label><p>Custom Field<p>'
5374+
'<div><label for="id_first_name">First name:</label><p>Custom Field</p>'
53755375
'<input type="text" name="first_name" required id="id_first_name"></div>',
53765376
)
53775377

@@ -5382,7 +5382,7 @@ class MyForm(Form):
53825382
f = MyForm()
53835383
self.assertHTMLEqual(
53845384
f["first_name"].render(template_name="forms_tests/custom_field.html"),
5385-
'<label for="id_first_name">First name:</label><p>Custom Field<p>'
5385+
'<label for="id_first_name">First name:</label><p>Custom Field</p>'
53865386
'<input type="text" name="first_name" required id="id_first_name">',
53875387
)
53885388

@@ -5410,7 +5410,7 @@ class Person(Form):
54105410
html = t.render(Context({"form": Person()}))
54115411
expected = """
54125412
<label for="id_first_name">First name:</label>
5413-
<p>Custom Field<p>
5413+
<p>Custom Field</p>
54145414
<input type="text" name="first_name" required id="id_first_name">
54155415
"""
54165416
self.assertHTMLEqual(html, expected)

tests/view_tests/templates/jsi18n-multi-catalogs.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<head>
33
<script src="/jsi18n/app1/"></script>
44
<script src="/jsi18n/app2/"></script>
5+
</head>
56
<body>
67
<p id="app1string">
78
<script>

0 commit comments

Comments
 (0)