def setUp(): controller = TestController() controller.setUp() controller.app.get('/wiki/Home/') setup_global_objects() ThreadLocalORMSession.close_all() h.set_context('test', 'wiki', neighborhood='Projects') ThreadLocalORMSession.flush_all() ThreadLocalORMSession.close_all()
def setUp(): controller = TestController() controller.setUp() controller.app.get("/wiki/Home/") setup_global_objects() ThreadLocalORMSession.close_all() h.set_context("test", "wiki", neighborhood="Projects") ThreadLocalORMSession.flush_all() ThreadLocalORMSession.close_all()
def main(args): test = TestController() setup(test) url = generate_wiki_thread(test) ThreadLocalODMSession.close_all() # make sure ODM sessions won't get re-used counts = count_page(test, url, verbose=args.verbose, debug_html=args.debug_html) print json.dumps(counts) write_csv(counts, args.id, args.data_file) test.tearDown()
def main(args): test = TestController() setup(test) url = generate_wiki_thread(test) # make sure ODM sessions won't get re-used ThreadLocalODMSession.close_all() counts = count_page(test, url, verbose=args.verbose, debug_html=args.debug_html) print(json.dumps(counts)) write_csv(counts, args.id, args.data_file) test.tearDown()
def setUp(self): TestController.setUp(self) self._setUp()