mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed unnecessary commas in tests.
This commit is contained in:
@@ -1731,7 +1731,7 @@ class DirectPrefetchedObjectCacheReuseTests(TestCase):
|
||||
lookup.
|
||||
"""
|
||||
with self.assertNumQueries(3):
|
||||
books = Book.objects.filter(title__in=["book1", "book2"],).prefetch_related(
|
||||
books = Book.objects.filter(title__in=["book1", "book2"]).prefetch_related(
|
||||
Prefetch(
|
||||
"first_time_authors",
|
||||
Author.objects.prefetch_related(
|
||||
@@ -1785,7 +1785,7 @@ class DirectPrefetchedObjectCacheReuseTests(TestCase):
|
||||
|
||||
def test_detect_is_fetched_with_to_attr(self):
|
||||
with self.assertNumQueries(3):
|
||||
books = Book.objects.filter(title__in=["book1", "book2"],).prefetch_related(
|
||||
books = Book.objects.filter(title__in=["book1", "book2"]).prefetch_related(
|
||||
Prefetch(
|
||||
"first_time_authors",
|
||||
Author.objects.prefetch_related(
|
||||
|
||||
Reference in New Issue
Block a user