summaryrefslogtreecommitdiff
path: root/tests/admin_views
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-04-18 07:46:05 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-20 12:10:33 +0200
commit505fec6badba0622bbf97bb659188c3d62a9bc58 (patch)
treeca5c256eb32d7f9906c59652049a45690458b52b /tests/admin_views
parent3152146e3abd029be2457d2e780599d399db0fe2 (diff)
Capitalized Unicode in docs, strings, and comments.
Diffstat (limited to 'tests/admin_views')
-rw-r--r--tests/admin_views/models.py6
-rw-r--r--tests/admin_views/tests.py8
2 files changed, 7 insertions, 7 deletions
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, '<div class="help">', 3)
self.assertContains(
response,
- '<div class="help">Some help text for the title (with unicode ŠĐĆŽćžšđ)</div>',
+ '<div class="help">Some help text for the title (with Unicode ŠĐĆŽćžšđ)</div>',
html=True
)
self.assertContains(
response,
- '<div class="help">Some help text for the content (with unicode ŠĐĆŽćžšđ)</div>',
+ '<div class="help">Some help text for the content (with Unicode ŠĐĆŽćžšđ)</div>',
html=True
)
self.assertContains(
response,
- '<div class="help">Some help text for the date (with unicode ŠĐĆŽćžšđ)</div>',
+ '<div class="help">Some help text for the date (with Unicode ŠĐĆŽćžšđ)</div>',
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, '<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 ŠĐĆŽćžšđ)")
+ self.assertNotContains(response, 'Some help text for the date (with Unicode ŠĐĆŽćžšđ)')
def test_correct_autoescaping(self):
"""