Пример #1
0
def main():
    test_dbinfo = dbutil.get_master_dbinfo()
    test_dbinfo = test_dbinfo.copy(dbname='%s_test' % test_dbinfo.get_dbname())
    dbutil.change_master_dbinfo(test_dbinfo)
    migration.setup_db()
    migration.setup_core_tables()
    b = runtests(quiet=False)
    dbutil.drop_db(dbutil.get_master_dbinfo())
    return b
Пример #2
0
 def setUpClass(cls):
     dbinfo = dbutil.get_master_dbinfo()
     dbinfo = dbinfo.copy(dbname = "test_test_db")
     cls.dbinfo = dbinfo