Skip to content

Commit 307e4e9

Browse files
authored
Update test_group_by.py
Remove extra whitespaces
1 parent f9d3d24 commit 307e4e9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/test_group_by.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,17 +319,13 @@ async def test_group_by_id_with_nested_filter(self):
319319
self.assertEqual(set(ret), {(book.id,) for book in self.books1})
320320

321321
async def test_subquery_group_by_no_alias(self):
322-
323322
query = Author.annotate(
324323
book_name=Subquery(
325324
Book.all().group_by("name").order_by("name").limit(1).values("name")
326325
)
327326
)
328-
329327
sql = query.sql()
330-
331328
self.assertIn('GROUP BY "name"', sql)
332329
self.assertNotIn('GROUP BY "name" "', sql)
333-
334330
result = await query.values("name", "book_name")
335331
self.assertIsInstance(result, list)

0 commit comments

Comments
 (0)