mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Removed unnecessary tuple wrapping of single format string argument.
This commit is contained in:
committed by
Mariusz Felisiak
parent
687cb38a05
commit
abea86f9e4
@@ -5502,7 +5502,7 @@ class DateHierarchyTests(TestCase):
|
||||
self.assertNotContains(response, formats.number_format(year))
|
||||
|
||||
def assert_contains_year_link(self, response, date):
|
||||
self.assertContains(response, '?release_date__year=%d"' % (date.year,))
|
||||
self.assertContains(response, '?release_date__year=%d"' % date.year)
|
||||
|
||||
def assert_contains_month_link(self, response, date):
|
||||
self.assertContains(
|
||||
@@ -5619,7 +5619,7 @@ class DateHierarchyTests(TestCase):
|
||||
|
||||
response = self.client.get(reverse('admin:admin_views_answer_changelist'))
|
||||
for date, answer_count in questions_data:
|
||||
link = '?question__posted__year=%d"' % (date.year,)
|
||||
link = '?question__posted__year=%d"' % date.year
|
||||
if answer_count > 0:
|
||||
self.assertContains(response, link)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user