Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f91a237

Browse files
committed
[server] check the empty output of map_doc in test case
doc ref: http://docs.couchdb.org/en/1.6.1/query-server/protocol.html#map-doc Reference: #268 See Also: #276
1 parent f7aee62 commit f91a237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

couchdb/tests/server/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_return_nothing(self):
115115
' pass'
116116
)
117117
doc = {'_id': 'foo'}
118-
views.map_doc(self.server, doc)
118+
self.assertEqual(views.map_doc(self.server, doc), [[]])
119119

120120
def test_yield_non_iterable(self):
121121
"""should raise Error if map function do not yield iterable"""

0 commit comments

Comments
 (0)