summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Pali <gabor.pali@ibm.com>2023-02-20 10:56:14 +0100
committerNick Vatamaniuc <nickva@users.noreply.github.com>2023-02-21 13:55:05 -0500
commit9cde1815031cf8947d82fe2e83c3d45664b593e1 (patch)
tree32465384c8bd050d7ee51575421f45e0f8308f61
parentb3890b5d3ce1d7715f18d4db6f74de087cb7b5e7 (diff)
downloadcouchdb-9cde1815031cf8947d82fe2e83c3d45664b593e1.tar.gz
mango: skip the `$keymapMatch` test for text indexes
Text indexes do not support the `$keymapMatch` operator thus let the test suite know about this limitation to avoid the related error.
-rw-r--r--src/mango/test/03-operator-test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mango/test/03-operator-test.py b/src/mango/test/03-operator-test.py
index a67ef91f3..ed5eb3847 100644
--- a/src/mango/test/03-operator-test.py
+++ b/src/mango/test/03-operator-test.py
@@ -66,6 +66,10 @@ class OperatorTests:
docs = self.db.find({"emptybang": {"$allMatch": {"foo": {"$eq": 2}}}})
self.assertEqual(len(docs), 0)
+ @unittest.skipUnless(
+ not mango.has_text_service(),
+ "text indexes do not support the $keyMapMatch operator",
+ )
def test_keymap_match(self):
amdocs = [
{"foo": {"aa": "bar", "bb": "bang"}},