Skip to content

Commit

Permalink
adapt near
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Jan 6, 2025
1 parent fcb9469 commit 27a5f18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_q.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 27a5f18

Please sign in to comment.