changeset 124:bb2d213cdd7e

Minor fix to database structure dump function.
author Daniele Nicolodi <daniele@grinta.net>
date Wed, 12 Oct 2011 20:26:18 +0200
parents 9cccafa2c753
children ab38e8a0eb8d
files src/ltpdarepo/tests/test_schema.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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__)