From ac955473d10a94d99f4d58f233b82a7c5f7bc7da Mon Sep 17 00:00:00 2001 From: Charles Leifer Date: Tue, 24 Sep 2019 10:28:59 -0500 Subject: [PATCH] Extend test with a where filter as well. --- tests/sqlite.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/sqlite.py b/tests/sqlite.py index e7c104e4c..2c825e352 100644 --- a/tests/sqlite.py +++ b/tests/sqlite.py @@ -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')])