equal
deleted
inserted
replaced
375 if limit and row > limit: |
375 if limit and row > limit: |
376 break |
376 break |
377 rset2 = rset.limit(limit=1, offset=row) |
377 rset2 = rset.limit(limit=1, offset=row) |
378 yield rset2 |
378 yield rset2 |
379 |
379 |
380 def not_selected(vreg, vobject): |
380 def not_selected(vreg, appobject): |
381 try: |
381 try: |
382 vreg._selected[vobject.__class__] -= 1 |
382 vreg._selected[appobject.__class__] -= 1 |
383 except (KeyError, AttributeError): |
383 except (KeyError, AttributeError): |
384 pass |
384 pass |
385 |
385 |
386 def vreg_instrumentize(testclass): |
386 def vreg_instrumentize(testclass): |
387 from cubicweb.devtools.apptest import TestEnvironment |
387 from cubicweb.devtools.apptest import TestEnvironment |
403 |
403 |
404 def print_untested_objects(testclass, skipregs=('hooks', 'etypes')): |
404 def print_untested_objects(testclass, skipregs=('hooks', 'etypes')): |
405 for regname, reg in testclass._env.vreg.iteritems(): |
405 for regname, reg in testclass._env.vreg.iteritems(): |
406 if regname in skipregs: |
406 if regname in skipregs: |
407 continue |
407 continue |
408 for vobjects in reg.itervalues(): |
408 for appobjects in reg.itervalues(): |
409 for vobject in vobjects: |
409 for appobject in appobjects: |
410 if not reg._selected.get(vobject): |
410 if not reg._selected.get(appobject): |
411 print 'not tested', regname, vobject |
411 print 'not tested', regname, appobject |