Skip to content

Commit

Permalink
Extend test with a where filter as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Sep 24, 2019
1 parent ce4c21d commit ac95547
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,12 @@ def test_children(self):
query = (KeyData
.select(KeyData.key, children.c.fullkey.alias('fullkey'))
.from_(KeyData, children)
.where(~children.c.fullkey.contains('k'))
.order_by(KeyData.id, SQL('fullkey')))
accum = [(row.key, row.fullkey) for row in query]
self.assertEqual(accum, [
('a', '$.k1'), ('a', '$.x1'),
('b', '$.k2'), ('b', '$.x2'),
('c', '$.k1'), ('c', '$.k2'),
('a', '$.x1'),
('b', '$.x2'),
('d', '$.x1'),
('e', '$.l1'), ('e', '$.l2')])

Expand Down

0 comments on commit ac95547

Please sign in to comment.