You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by to...@apache.org on 2015/09/03 09:20:15 UTC
[2/3] couchdb-mango git commit: Modify tests for skip
Modify tests for skip
COUCHDB-2787
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mango/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mango/commit/838c6329
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mango/tree/838c6329
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mango/diff/838c6329
Branch: refs/heads/2787-merge-repos
Commit: 838c6329015254e0f6ffaf1e99b6718950971559
Parents: 805fee5
Author: Tony Sun <to...@cloudant.com>
Authored: Wed Sep 2 13:30:28 2015 -0700
Committer: Tony Sun <to...@cloudant.com>
Committed: Wed Sep 2 13:30:28 2015 -0700
----------------------------------------------------------------------
test/01-index-crud-test.py | 13 ++++++++++---
test/05-index-selection-test.py | 3 ++-
test/06-basic-text-test.py | 5 +++++
test/09-text-sort-test.py | 2 +-
test/friend_docs.py | 2 +-
5 files changed, 19 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/838c6329/test/01-index-crud-test.py
----------------------------------------------------------------------
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 @@ class IndexCrudTests(mango.DbPerClass):
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 @@ class IndexCrudTests(mango.DbPerClass):
]
return
raise AssertionError("index not created")
-
+
+ @unittest.skip
def test_create_bad_text_idx(self):
bad_fields = [
True,
http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/838c6329/test/05-index-selection-test.py
----------------------------------------------------------------------
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 @@ class IndexSelectionTests(mango.UserDocsTests):
}, 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 IndexSelectionTests(mango.UserDocsTests):
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")
http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/838c6329/test/06-basic-text-test.py
----------------------------------------------------------------------
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 @@ class ElemMatchTests(mango.FriendDocsTextTests):
# 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}
http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/838c6329/test/09-text-sort-test.py
----------------------------------------------------------------------
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 @@ class SortTests(mango.UserDocsTextTests):
@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}}
http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/838c6329/test/friend_docs.py
----------------------------------------------------------------------
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 @@ DOCS = [
},
"type": "work"
}
- ]
+ ],
"results": [ 82, 85, 88 ]
},
{