devtools/testlib.py
branchstable
changeset 2219 bb5098e74b82
parent 2070 d98f5be5e371
child 2234 1fbcf202882d
equal deleted inserted replaced
2218:b5d00053a7fe 2219:bb5098e74b82
   243         return unprotected_entities(self.schema, strict=True)
   243         return unprotected_entities(self.schema, strict=True)
   244 
   244 
   245     def iter_automatic_rsets(self, limit=10):
   245     def iter_automatic_rsets(self, limit=10):
   246         """generates basic resultsets for each entity type"""
   246         """generates basic resultsets for each entity type"""
   247         etypes = self.to_test_etypes()
   247         etypes = self.to_test_etypes()
       
   248         if not etypes:
       
   249             return
   248         for etype in etypes:
   250         for etype in etypes:
   249             yield self.execute('Any X LIMIT %s WHERE X is %s' % (limit, etype))
   251             yield self.execute('Any X LIMIT %s WHERE X is %s' % (limit, etype))
   250         etype1 = etypes.pop()
   252         etype1 = etypes.pop()
   251         try:
   253         try:
   252             etype2 = etypes.pop()
   254             etype2 = etypes.pop()