couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tonysu...@apache.org
Subject couchdb-mango git commit: Add query
Date Fri, 11 Sep 2015 19:57:56 GMT
Repository: couchdb-mango
Updated Branches:
  refs/heads/2806-numeric-string-field 257a9e8a7 -> acef66bf2


Add query


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mango/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mango/commit/acef66bf
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mango/tree/acef66bf
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mango/diff/acef66bf

Branch: refs/heads/2806-numeric-string-field
Commit: acef66bf209009502d32050ebf87d1edf8ccc3ae
Parents: 257a9e8
Author: Tony Sun <tony.sun@cloudant.com>
Authored: Fri Sep 11 12:59:40 2015 -0700
Committer: Tony Sun <tony.sun@cloudant.com>
Committed: Fri Sep 11 12:59:40 2015 -0700

----------------------------------------------------------------------
 test/06-basic-text-test.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/acef66bf/test/06-basic-text-test.py
----------------------------------------------------------------------
diff --git a/test/06-basic-text-test.py b/test/06-basic-text-test.py
index 92f60ee..c60779e 100644
--- a/test/06-basic-text-test.py
+++ b/test/06-basic-text-test.py
@@ -586,6 +586,7 @@ class NumStringTests(mango.DbPerClass):
             if docs[0]["number_string"] != f:
                 assert docs[1]["number_string"] == f
         q = {"number_string": f}
+        docs = self.db.find(q)
         if len(docs) == 1:
             assert docs[0]["number_string"] == f
         if len(docs) == 2:


Mime
View raw message