1
0
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:
Mariusz Felisiak
2022-12-21 11:41:29 +01:00
committed by GitHub
parent 2d676ee119
commit 3b24a3fa33
6 changed files with 8 additions and 10 deletions

View File

@@ -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(