diff options
Diffstat (limited to 'src/mango/test/02-basic-find-test.py')
-rw-r--r-- | src/mango/test/02-basic-find-test.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mango/test/02-basic-find-test.py b/src/mango/test/02-basic-find-test.py index e634ce9fe..699166e28 100644 --- a/src/mango/test/02-basic-find-test.py +++ b/src/mango/test/02-basic-find-test.py @@ -14,7 +14,6 @@ import mango - class BasicFindTests(mango.UserDocsTests): def test_bad_selector(self): @@ -264,3 +263,15 @@ class BasicFindTests(mango.UserDocsTests): ] }) assert len(docs) == 0 + + def test_explain_view_args(self): + explain = self.db.find({ + "age":{"$gt": 0} + }, fields=["manager"], + explain=True) + assert explain["mrargs"]["stable"] == False + assert explain["mrargs"]["update"] == True + assert explain["mrargs"]["reduce"] == False + assert explain["mrargs"]["start_key"] == [0] + assert explain["mrargs"]["end_key"] == [{}] + assert explain["mrargs"]["include_docs"] == True |