equal
deleted
inserted
replaced
1204 |
1204 |
1205 # def vreg_instrumentize(testclass): |
1205 # def vreg_instrumentize(testclass): |
1206 # # XXX broken |
1206 # # XXX broken |
1207 # from cubicweb.devtools.apptest import TestEnvironment |
1207 # from cubicweb.devtools.apptest import TestEnvironment |
1208 # env = testclass._env = TestEnvironment('data', configcls=testclass.configcls) |
1208 # env = testclass._env = TestEnvironment('data', configcls=testclass.configcls) |
1209 # for reg in env.vreg.values(): |
1209 # for reg in env.vreg.itervalues(): |
1210 # reg._selected = {} |
1210 # reg._selected = {} |
1211 # try: |
1211 # try: |
1212 # orig_select_best = reg.__class__.__orig_select_best |
1212 # orig_select_best = reg.__class__.__orig_select_best |
1213 # except Exception: |
1213 # except Exception: |
1214 # orig_select_best = reg.__class__._select_best |
1214 # orig_select_best = reg.__class__._select_best |