Ejemplo n.º 1
0
 def test_validate_invalid_batchsize(self):
     accepted = False
     size = 100
     try:
         validate.batchsize(size)
     except ValueError as e:
         accepted = True
     assert accepted
Ejemplo n.º 2
0
 def parse_pagination_limit(self):
     """determine pagination_limit"""
     if self.options['batchsize'] is None:
         return settings.pagination_limit()
     validate.batchsize(self.options['batchsize'])
     return int(self.options['batchsize'])
Ejemplo n.º 3
0
 def parse_pagination_limit(self):
     """determine pagination_limit"""
     if self.options['batchsize'] is None:
         return settings.pagination_limit()
     validate.batchsize(self.options['batchsize'])
     return int(self.options['batchsize'])