From 27a5f18397f05b4bf8c96ceb9402ce89a542408b Mon Sep 17 00:00:00 2001 From: thomasht86 Date: Mon, 6 Jan 2025 11:34:02 +0100 Subject: [PATCH] adapt near --- tests/unit/test_q.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_q.py b/tests/unit/test_q.py index 98ab8cf1..f2949476 100644 --- a/tests/unit/test_q.py +++ b/tests/unit/test_q.py @@ -488,8 +488,8 @@ def test_phrase(self): def test_near(self): title = qb.QueryField("title") condition = title.contains(qb.near("madonna", "saint")) - query = qb.select("*").where(condition) - expected = 'select * from * where title contains near("madonna", "saint")' + query = qb.select("*").from_("sd1").where(condition) + expected = 'select * from sd1 where title contains near("madonna", "saint")' self.assertEqual(query, expected) return query