From 505fec6badba0622bbf97bb659188c3d62a9bc58 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 18 Apr 2020 07:46:05 -0700 Subject: Capitalized Unicode in docs, strings, and comments. --- tests/admin_views/models.py | 6 +++--- tests/admin_views/tests.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/admin_views') diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py index 16dd58bcd3..ba818ea10e 100644 --- a/tests/admin_views/models.py +++ b/tests/admin_views/models.py @@ -458,12 +458,12 @@ class PrePopulatedSubPost(models.Model): class Post(models.Model): - title = models.CharField(max_length=100, help_text="Some help text for the title (with unicode ŠĐĆŽćžšđ)") - content = models.TextField(help_text="Some help text for the content (with unicode ŠĐĆŽćžšđ)") + title = models.CharField(max_length=100, help_text='Some help text for the title (with Unicode ŠĐĆŽćžšđ)') + content = models.TextField(help_text='Some help text for the content (with Unicode ŠĐĆŽćžšđ)') readonly_content = models.TextField() posted = models.DateField( default=datetime.date.today, - help_text="Some help text for the date (with unicode ŠĐĆŽćžšđ)" + help_text='Some help text for the date (with Unicode ŠĐĆŽćžšđ)', ) public = models.BooleanField(null=True, blank=True) diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 8fde8ed45c..37818f7f65 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -4842,17 +4842,17 @@ class ReadonlyTest(AdminFieldExtractionMixin, TestCase): self.assertContains(response, '
', 3) self.assertContains( response, - '
Some help text for the title (with unicode ŠĐĆŽćžšđ)
', + '
Some help text for the title (with Unicode ŠĐĆŽćžšđ)
', html=True ) self.assertContains( response, - '
Some help text for the content (with unicode ŠĐĆŽćžšđ)
', + '
Some help text for the content (with Unicode ŠĐĆŽćžšđ)
', html=True ) self.assertContains( response, - '
Some help text for the date (with unicode ŠĐĆŽćžšđ)
', + '
Some help text for the date (with Unicode ŠĐĆŽćžšđ)
', html=True ) @@ -4962,7 +4962,7 @@ class ReadonlyTest(AdminFieldExtractionMixin, TestCase): response = self.client.get(reverse('admin:admin_views_fieldoverridepost_change', args=(p.pk,))) self.assertContains(response, '
Overridden help text for the date
') self.assertContains(response, '', html=True) - self.assertNotContains(response, "Some help text for the date (with unicode ŠĐĆŽćžšđ)") + self.assertNotContains(response, 'Some help text for the date (with Unicode ŠĐĆŽćžšđ)') def test_correct_autoescaping(self): """ -- cgit v1.3