Esempio n. 1
0
def get_test_authdb():
    '''This just makes a new test auth DB for each test function.

    '''

    authdb.create_sqlite_authdb('test-creation.authdb.sqlite')
    authdb.initial_authdb_inserts('sqlite:///test-creation.authdb.sqlite')
Esempio n. 2
0
def get_test_authdb(tmpdir):
    """This just makes a new test auth DB for each test function."""

    if not isinstance(tmpdir, py.path.local):
        tmpdir = py.path.local(tmpdir)

    dbpath = str(tmpdir.join("test-email.authdb.sqlite"))

    authdb.create_sqlite_authdb(dbpath)
    authdb.initial_authdb_inserts("sqlite:///%s" % dbpath)

    return "sqlite:///%s" % dbpath
def get_test_authdb():
    """This just makes a new test auth DB for each test function."""

    authdb.create_sqlite_authdb("test-loginlogout.authdb.sqlite")
    authdb.initial_authdb_inserts("sqlite:///test-loginlogout.authdb.sqlite")