File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ def next_page(self):
395395 pb .end_cursor = base64 .urlsafe_b64decode (end_cursor )
396396
397397 if self ._limit is not None :
398- pb .limit = self ._limit
398+ pb .limit . value = self ._limit
399399
400400 pb .offset = self ._offset
401401
Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ def test_next_page_no_cursors_no_more_w_offset_and_limit(self):
407407 [{'kind' : self ._KIND , 'id' : self ._ID }])
408408 self .assertEqual (entities [0 ]['foo' ], u'Foo' )
409409 qpb = _pb_from_query (query )
410- qpb .limit = 13
410+ qpb .limit . value = 13
411411 qpb .offset = 29
412412 EXPECTED = {
413413 'dataset_id' : self ._DATASET ,
@@ -544,7 +544,7 @@ def test_empty(self):
544544 self .assertEqual (list (cfilter .filter ), [])
545545 self .assertEqual (pb .start_cursor , b'' )
546546 self .assertEqual (pb .end_cursor , b'' )
547- self .assertEqual (pb .limit , 0 )
547+ self .assertEqual (pb .limit . value , 0 )
548548 self .assertEqual (pb .offset , 0 )
549549
550550 def test_projection (self ):
You can’t perform that action at this time.
0 commit comments