diff options
| author | Alexander Gaevsky <sasha@sasha0.ru> | 2016-04-14 20:10:55 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-09-10 16:54:10 -0400 |
| commit | 2d26b4637f0318736955b54b34f270fe9500f795 (patch) | |
| tree | 9c63a1cb71634566eb40201386b6b4f8df185c5b /tests/admin_views | |
| parent | 14879ac61ddc8b08ad70f93eb21fcadd7b2574fb (diff) | |
Fixed #27207 -- Replaced <p> tag with <div> in admin help texts.
Diffstat (limited to 'tests/admin_views')
| -rw-r--r-- | tests/admin_views/tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 336c9ce0a5..3368ddf3d6 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -4608,20 +4608,20 @@ class ReadonlyTest(AdminFieldExtractionMixin, TestCase): self.assertContains(response, '<div class="form-row field-posted">') self.assertContains(response, '<div class="form-row field-value">') self.assertContains(response, '<div class="form-row">') - self.assertContains(response, '<p class="help">', 3) + self.assertContains(response, '<div class="help">', 3) self.assertContains( response, - '<p class="help">Some help text for the title (with unicode ŠĐĆŽćžšđ)</p>', + '<div class="help">Some help text for the title (with unicode ŠĐĆŽćžšđ)</div>', html=True ) self.assertContains( response, - '<p class="help">Some help text for the content (with unicode ŠĐĆŽćžšđ)</p>', + '<div class="help">Some help text for the content (with unicode ŠĐĆŽćžšđ)</div>', html=True ) self.assertContains( response, - '<p class="help">Some help text for the date (with unicode ŠĐĆŽćžšđ)</p>', + '<div class="help">Some help text for the date (with unicode ŠĐĆŽćžšđ)</div>', html=True ) @@ -4724,7 +4724,7 @@ class ReadonlyTest(AdminFieldExtractionMixin, TestCase): """ p = FieldOverridePost.objects.create(title="Test Post", content="Test Content") response = self.client.get(reverse('admin:admin_views_fieldoverridepost_change', args=(p.pk,))) - self.assertContains(response, '<p class="help">Overridden help text for the date</p>') + self.assertContains(response, '<div class="help">Overridden help text for the date</div>') self.assertContains(response, '<label for="id_public">Overridden public label:</label>', html=True) self.assertNotContains(response, "Some help text for the date (with unicode ŠĐĆŽćžšđ)") |
