diff options
Diffstat (limited to 'src/mango/test/05-index-selection-test.py')
-rw-r--r-- | src/mango/test/05-index-selection-test.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mango/test/05-index-selection-test.py b/src/mango/test/05-index-selection-test.py index 2a40fda38..0c93410d9 100644 --- a/src/mango/test/05-index-selection-test.py +++ b/src/mango/test/05-index-selection-test.py @@ -40,7 +40,7 @@ class IndexSelectionTests: def test_with_or(self): # index on ["company","manager"] - ddocid = "_design/a0c425a60cf3c3c09e3c537c9ef20059dcef9198" + ddocid = "_design/company-manager" resp = self.db.find({ "company": { @@ -56,7 +56,7 @@ class IndexSelectionTests: def test_use_most_columns(self): # ddoc id for the age index - ddocid = "_design/ad3d537c03cd7c6a43cf8dff66ef70ea54c2b40f" + ddocid = "_design/age" resp = self.db.find({ "name.first": "Stephanie", "name.last": "Something or other", @@ -81,7 +81,7 @@ class IndexSelectionTests: def test_invalid_use_index(self): # ddoc id for the age index - ddocid = "_design/ad3d537c03cd7c6a43cf8dff66ef70ea54c2b40f" + ddocid = "_design/age" r = self.db.find({}, use_index=ddocid, return_raw=True) self.assertEqual(r["warning"], '{0} was not used because it does not contain a valid index for this query.'.format(ddocid)) @@ -101,7 +101,7 @@ class IndexSelectionTests: def test_reject_use_index_invalid_fields(self): # index on ["company","manager"] which should not be valid - ddocid = "_design/a0c425a60cf3c3c09e3c537c9ef20059dcef9198" + ddocid = "_design/company-manager" selector = { "company": "Pharmex" } @@ -114,8 +114,8 @@ class IndexSelectionTests: def test_reject_use_index_ddoc_and_name_invalid_fields(self): # index on ["company","manager"] which should not be valid - ddocid = "_design/a0c425a60cf3c3c09e3c537c9ef20059dcef9198" - name = "a0c425a60cf3c3c09e3c537c9ef20059dcef9198" + ddocid = "_design/company-manager" + name = "company-manager" selector = { "company": "Pharmex" } @@ -130,7 +130,7 @@ class IndexSelectionTests: def test_reject_use_index_sort_order(self): # index on ["company","manager"] which should not be valid # and there is no valid fallback (i.e. an index on ["company"]) - ddocid = "_design/a0c425a60cf3c3c09e3c537c9ef20059dcef9198" + ddocid = "_design/company-manager" selector = { "company": {"$gt": None} } |