mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Removed unused local variables in tests.
This commit is contained in:
parent
5f52590368
commit
96d1d4e292
72 changed files with 309 additions and 339 deletions
|
@ -16,8 +16,8 @@ class ModelInheritanceSelectRelatedTests(TestCase):
|
|||
r2 = Restaurant.objects.create(
|
||||
name="Craft", serves_sushi=False, serves_steak=True
|
||||
)
|
||||
p1 = Person.objects.create(name="John", favorite_restaurant=r1)
|
||||
p2 = Person.objects.create(name="Jane", favorite_restaurant=r2)
|
||||
Person.objects.create(name="John", favorite_restaurant=r1)
|
||||
Person.objects.create(name="Jane", favorite_restaurant=r2)
|
||||
|
||||
self.assertQuerysetEqual(
|
||||
Person.objects.order_by("name").select_related(), [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue