Пример #1
0
def db_schemas(request):
    @request.addfinalizer
    def fin():
        install.main(uninstall=True)

    install.main(samples=True, pk_passphrase='', jira=False, set_env_vars=True)

    # reload to pick up env vars set by installer
    import importlib

    importlib.reload(dbconfig)
    importlib.reload(db)
    importlib.reload(install)

    yield
Пример #2
0
 def fin():
     install.main(uninstall=True)