def setup(request): from proxymaid.proxy import dbhelper dbhelper.drop_tables() dbhelper.create_tables() def fin(): pass request.addfinalizer(fin)
def setup(request): from proxymaid.proxy import dbhelper dbhelper.drop_tables() dbhelper.create_tables() p = Process(target=run_proxy_pool_service) p.daemon = True p.start() def fin(): dbhelper.drop_tables() request.addfinalizer(fin) return p