couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [3/5] couchdb-mango git commit: Fix index name check
Date Sat, 01 Aug 2015 15:50:49 GMT
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 <kxepal@apache.org>
Authored: Wed Jul 29 22:23:39 2015 +0300
Committer: Alexander Shorin <kxepal@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()


Mime
View raw message