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 <[email protected]> Authored: Wed Jul 29 22:23:39 2015 +0300 Committer: Alexander Shorin <[email protected]> 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()
