# HG changeset patch # User Daniele Nicolodi # Date 1318443978 -7200 # Node ID bb2d213cdd7e972d2cb56f6451d67e3aebc358e7 # Parent 9cccafa2c7539d978eab753b947ba1076d93bd87 Minor fix to database structure dump function. diff -r 9cccafa2c753 -r bb2d213cdd7e src/ltpdarepo/tests/test_schema.py --- a/src/ltpdarepo/tests/test_schema.py Wed Oct 12 20:24:46 2011 +0200 +++ b/src/ltpdarepo/tests/test_schema.py Wed Oct 12 20:26:18 2011 +0200 @@ -40,7 +40,7 @@ def dump_database(inspector, f): - f.write('db1') + f.write(inspector.default_schema_name) with f.indent(): # tables for table in inspector.get_table_names(): @@ -113,7 +113,7 @@ wipe() - # load dump + # load dump obtained with `mysqldump --add-drop-database --skip-comments --databases mysql ltpda db1` conn = mysql.connect(host=HOSTNAME, db='', user=USERNAME, passwd=PASSWORD, charset='utf8') curs = conn.cursor() pwd = os.path.dirname(__file__)