summaryrefslogtreecommitdiff
path: root/tests/postgres_tests
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2022-05-05 14:26:09 +0200
committerCarlton Gibson <carlton.gibson@noumenal.es>2022-05-17 11:16:54 +0200
commitd126eba3637d84caa80fa4258e2e59ef07a8260c (patch)
treee135d40a0934710bae8dcb7e912b49695e600adb /tests/postgres_tests
parent6af8673255ad2aca01097db9a8c64dc6b31678c0 (diff)
downloaddjango-d126eba3637d84caa80fa4258e2e59ef07a8260c.tar.gz
Refs #32339 -- Deprecated default.html form template.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Diffstat (limited to 'tests/postgres_tests')
-rw-r--r--tests/postgres_tests/test_array.py14
-rw-r--r--tests/postgres_tests/test_ranges.py22
2 files changed, 16 insertions, 20 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py
index 7243ab6a5a..1100e8f3b0 100644
--- a/tests/postgres_tests/test_array.py
+++ b/tests/postgres_tests/test_array.py
@@ -1196,14 +1196,12 @@ class TestSplitFormField(PostgreSQLSimpleTestCase):
self.assertHTMLEqual(
str(SplitForm()),
"""
- <tr>
- <th><label for="id_array_0">Array:</label></th>
- <td>
- <input id="id_array_0" name="array_0" type="text" required>
- <input id="id_array_1" name="array_1" type="text" required>
- <input id="id_array_2" name="array_2" type="text" required>
- </td>
- </tr>
+ <div>
+ <label for="id_array_0">Array:</label>
+ <input id="id_array_0" name="array_0" type="text" required>
+ <input id="id_array_1" name="array_1" type="text" required>
+ <input id="id_array_2" name="array_2" type="text" required>
+ </div>
""",
)
diff --git a/tests/postgres_tests/test_ranges.py b/tests/postgres_tests/test_ranges.py
index 1b155ed51a..7f8fc6bb8c 100644
--- a/tests/postgres_tests/test_ranges.py
+++ b/tests/postgres_tests/test_ranges.py
@@ -687,17 +687,15 @@ class TestFormField(PostgreSQLSimpleTestCase):
self.assertHTMLEqual(
str(form),
"""
- <tr>
- <th>
- <label>Field:</label>
- </th>
- <td>
+ <div>
+ <fieldset>
+ <legend>Field:</legend>
<input id="id_field_0_0" name="field_0_0" type="text">
<input id="id_field_0_1" name="field_0_1" type="text">
<input id="id_field_1_0" name="field_1_0" type="text">
<input id="id_field_1_1" name="field_1_1" type="text">
- </td>
- </tr>
+ </fieldset>
+ </div>
""",
)
form = SplitForm(
@@ -788,13 +786,13 @@ class TestFormField(PostgreSQLSimpleTestCase):
self.assertHTMLEqual(
str(RangeForm()),
"""
- <tr>
- <th><label>Ints:</label></th>
- <td>
+ <div>
+ <fieldset>
+ <legend>Ints:</legend>
<input id="id_ints_0" name="ints_0" type="number">
<input id="id_ints_1" name="ints_1" type="number">
- </td>
- </tr>
+ </fieldset>
+ </div>
""",
)