From 26543ad26a07575b7848fc1bbf070485614e3533 Mon Sep 17 00:00:00 2001 From: Emanuel Lupi Date: Tue, 10 Sep 2024 05:38:09 +0200 Subject: [PATCH] Fix flake8. --- tests/queries/test_qs_combinators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/queries/test_qs_combinators.py b/tests/queries/test_qs_combinators.py index e7740b987c..55dbeced05 100644 --- a/tests/queries/test_qs_combinators.py +++ b/tests/queries/test_qs_combinators.py @@ -507,7 +507,8 @@ def test_count_union_with_select_related_projected(self): a1 = Author.objects.create(name="a1", num=1, extra=e1) qs = Author.objects.select_related("extra").values("pk", "name", "extra__value") self.assertEqual(len(qs.union(qs)), 1) - self.assertEqual(qs.union(qs).first(), {"pk": a1.id, 'name': 'a1', 'extra__value': 1}) + self.assertEqual( + qs.union(qs).first(), {"pk": a1.id, 'name': 'a1', 'extra__value': 1}) def test_exists_union(self): qs1 = Number.objects.filter(num__gte=5)