Skip to content

Commit

Permalink
Fix test filters todo (#1619)
Browse files Browse the repository at this point in the history
* Fixes test_filters todo

* Explicit order values list
  • Loading branch information
waketzheng committed May 22, 2024
1 parent 5701734 commit 1f6e823
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,11 @@ async def test_isnull(self):
set(await CharPkModel.filter(children__isnull=True).values_list("id", flat=True)),
{"2001"},
)
self.assertSetEqual(
set(await CharPkModel.filter(children__isnull=False).values_list("id", flat=True)),
{
"17",
"17",
"12",
}, # TODO: [4/7/2021 by Mykola] Not sure if this is an expected behavior
self.assertEqual(
await CharPkModel.filter(children__isnull=False)
.order_by("id")
.values_list("id", flat=True),
["12", "17", "17"],
)

async def test_not_isnull(self):
Expand Down

0 comments on commit 1f6e823

Please sign in to comment.