Beispiel #1
0
def setup(request):
    from proxymaid.proxy import dbhelper
    dbhelper.drop_tables()
    dbhelper.create_tables()
    def fin():
        pass
    request.addfinalizer(fin)
Beispiel #2
0
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