Skip to content

Commit

Permalink
Fix flake8.
Browse files Browse the repository at this point in the history
  • Loading branch information
WaVEV committed Sep 10, 2024
1 parent cdc9592 commit 26543ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/queries/test_qs_combinators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 26543ad

Please sign in to comment.