summaryrefslogtreecommitdiff
path: root/tests/admin_views
diff options
context:
space:
mode:
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):
"""