summaryrefslogtreecommitdiff
path: root/src/mango/test/03-operator-test.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mango/test/03-operator-test.py')
-rw-r--r--src/mango/test/03-operator-test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mango/test/03-operator-test.py b/src/mango/test/03-operator-test.py
index 1af39f205..239cc7d41 100644
--- a/src/mango/test/03-operator-test.py
+++ b/src/mango/test/03-operator-test.py
@@ -174,6 +174,9 @@ class OperatorTests:
for d in docs:
self.assertIn("twitter", d)
+ # ideally this work be consistent across index types but, alas, it is not
+ @unittest.skipUnless(not mango.has_text_service(),
+ "text indexes do not support range queries across type boundaries")
def test_lt_includes_null_but_not_missing(self):
docs = self.db.find({
"twitter": {"$lt": 1}
@@ -183,6 +186,8 @@ class OperatorTests:
for d in docs:
self.assertEqual(d["twitter"], None)
+ @unittest.skipUnless(not mango.has_text_service(),
+ "text indexes do not support range queries across type boundaries")
def test_lte_includes_null_but_not_missing(self):
docs = self.db.find({
"twitter": {"$lt": 1}