summaryrefslogtreecommitdiff
path: root/tests/foreign_object/test_agnostic_order_trimjoin.py
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2022-02-03 20:24:19 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch)
treef0506b668a013d0063e5fba3dbf4863b466713ba /tests/foreign_object/test_agnostic_order_trimjoin.py
parentf68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff)
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/foreign_object/test_agnostic_order_trimjoin.py')
-rw-r--r--tests/foreign_object/test_agnostic_order_trimjoin.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/foreign_object/test_agnostic_order_trimjoin.py b/tests/foreign_object/test_agnostic_order_trimjoin.py
index d3b7184be6..c5b8f66e7b 100644
--- a/tests/foreign_object/test_agnostic_order_trimjoin.py
+++ b/tests/foreign_object/test_agnostic_order_trimjoin.py
@@ -6,7 +6,6 @@ from .models import Address, Contact, Customer
class TestLookupQuery(TestCase):
-
@classmethod
def setUpTestData(cls):
cls.address = Address.objects.create(company=1, customer_id=20)
@@ -17,12 +16,12 @@ class TestLookupQuery(TestCase):
self.assertQuerysetEqual(
Address.objects.filter(customer__contacts=self.contact1),
[self.address.id],
- attrgetter('id')
+ attrgetter("id"),
)
def test_deep_mixed_backward(self):
self.assertQuerysetEqual(
Contact.objects.filter(customer__address=self.address),
[self.contact1.id],
- attrgetter('id')
+ attrgetter("id"),
)