Modify tests for skip
COUCHDB-2787
diff --git a/test/01-index-crud-test.py b/test/01-index-crud-test.py
index bd41516..71ea920 100644
--- a/test/01-index-crud-test.py
+++ b/test/01-index-crud-test.py
@@ -13,9 +13,14 @@
import random
import mango
-
+import unittest
class IndexCrudTests(mango.DbPerClass):
+ @classmethod
+ def setUpClass(klass):
+ raise unittest.SkipTest('text index is not supported yet')
+ super(KeyTests, klass).setUpClass()
+
def test_bad_fields(self):
bad_fields = [
None,
@@ -222,7 +227,8 @@
assert e.response.status_code == 404
else:
raise AssertionError("bad index delete")
-
+
+ @unittest.skip
def test_create_text_idx(self):
fields = [
{"name":"stringidx", "type" : "string"},
@@ -240,7 +246,8 @@
]
return
raise AssertionError("index not created")
-
+
+ @unittest.skip
def test_create_bad_text_idx(self):
bad_fields = [
True,
diff --git a/test/05-index-selection-test.py b/test/05-index-selection-test.py
index 5934f91..4ded668 100644
--- a/test/05-index-selection-test.py
+++ b/test/05-index-selection-test.py
@@ -32,6 +32,7 @@
}, explain=True)
assert resp["index"]["type"] == "json"
+ @unittest.skip
def test_with_text(self):
resp = self.db.find({
"$text" : "Stephanie",
@@ -76,7 +77,7 @@
class MultiTextIndexSelectionTests(mango.UserDocsTests):
@classmethod
def setUpClass(klass):
- raise unittest.SkipTest('text index is not supported yet')
+ raise unittest.SkipTest('text index service is not available')
super(MultiTextIndexSelectionTests, klass).setUpClass()
klass.db.create_text_index(ddoc="foo", analyzer="keyword")
klass.db.create_text_index(ddoc="bar", analyzer="email")
diff --git a/test/06-basic-text-test.py b/test/06-basic-text-test.py
index d44e340..b1be671 100644
--- a/test/06-basic-text-test.py
+++ b/test/06-basic-text-test.py
@@ -565,6 +565,11 @@
# Test numeric strings for $text
class NumStringTests(mango.NumStringDocsTextTests):
+
+ @classmethod
+ def setUpClass(klass):
+ raise unittest.SkipTest('text index is not supported yet')
+
def test_floating_point_val(self):
float_point_string = num_string_docs.DOCS[2]["number_string"]
q = {"$text": float_point_string}
diff --git a/test/09-text-sort-test.py b/test/09-text-sort-test.py
index da58304..7bdf54a 100644
--- a/test/09-text-sort-test.py
+++ b/test/09-text-sort-test.py
@@ -17,7 +17,7 @@
@classmethod
def setUpClass(klass):
- raise unittest.SkipTest('text index is not supported yet')
+ raise unittest.SkipTest('text index service is not available')
def test_number_sort(self):
q = {"age": {"$gt": 0}}
diff --git a/test/friend_docs.py b/test/friend_docs.py
index ec2c082..e0cf60e 100644
--- a/test/friend_docs.py
+++ b/test/friend_docs.py
@@ -530,7 +530,7 @@
},
"type": "work"
}
- ]
+ ],
"results": [ 82, 85, 88 ]
},
{