You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/08/01 17:50:49 UTC
[3/5] couchdb-mango git commit: Fix index name check
Fix index name check
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mango/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mango/commit/6ba768f3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mango/tree/6ba768f3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mango/diff/6ba768f3
Branch: refs/heads/master
Commit: 6ba768f31acad2e3d0c594ce94522220d1238dce
Parents: 0f34ae2
Author: Alexander Shorin <kx...@apache.org>
Authored: Wed Jul 29 22:23:39 2015 +0300
Committer: Alexander Shorin <kx...@apache.org>
Committed: Wed Jul 29 22:54:05 2015 +0300
----------------------------------------------------------------------
test/01-index-crud-test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/6ba768f3/test/01-index-crud-test.py
----------------------------------------------------------------------
diff --git a/test/01-index-crud-test.py b/test/01-index-crud-test.py
index d83e97f..1d73a78 100644
--- a/test/01-index-crud-test.py
+++ b/test/01-index-crud-test.py
@@ -112,7 +112,7 @@ class IndexCrudTests(mango.DbPerClass):
doc = self.db.open_doc(ddocid)
assert doc["_id"] == ddocid
info = self.db.ddoc_info(ddocid)
- assert info["name"] == ddocid
+ assert info["name"] == ddocid.split('_design/')[-1]
def test_delete_idx_escaped(self):
pre_indexes = self.db.list_indexes()