Skip to content

Commit f6adae2

Browse files
committed
Add basic test for update_seq API
1 parent 1502464 commit f6adae2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

couchdb/tests/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,11 @@ def test_iter_view(self):
597597
view = client.PermanentView(self.db.resource('_all_docs').url, '_all_docs')
598598
self.assertEqual(len(list(view)), 1)
599599

600+
def test_update_seq(self):
601+
self.db['foo'] = {}
602+
rows = self.db.view('_all_docs', update_seq=True)
603+
self.assertEqual(rows.update_seq, 1)
604+
600605
def test_tmpview_repr(self):
601606
mapfunc = "function(doc) {emit(null, null);}"
602607
view = client.TemporaryView(self.db.resource('_temp_view'), mapfunc)

0 commit comments

Comments
 (0)