Fix the trigger delete code and enable peewee autorollback.

This commit is contained in:
jakedt 2014-03-06 14:47:02 -05:00
parent 0d4c66312b
commit f8a1535e78
2 changed files with 4 additions and 2 deletions

View file

@ -47,7 +47,8 @@ class RealTransactions(object):
class SQLiteDB(RealTransactions):
DB_NAME = 'test/data/test.db'
DB_CONNECTION_ARGS = {
'threadlocals': True
'threadlocals': True,
'autorollback': True,
}
DB_DRIVER = SqliteDatabase
@ -79,6 +80,7 @@ class RDSMySQL(RealTransactions):
'user': 'fluxmonkey',
'passwd': '8eifM#uoZ85xqC^',
'threadlocals': True,
'autorollback': True,
}
DB_DRIVER = MySQLDatabase