deb-migrate/migrate/tests/versioning
Ihar Hrachyshka 938757e7aa Ignore transaction management statements in SQL scripts
Now that we don't run SQL script with a single .execute() call,
transaction management statements (BEGIN, COMMIT, END) fail with
operational error. Ignore them if occurred in a script.

All in all, transactions are managed by SQLAlchemy-migrate itself, so
there is no reason for the calling code to pass those statements in a
SQL script. Warn user about the statements that are ignored.

The ideal response to such a warning from library users is removing
those redundant transaction management statements from their scripts.

Note: ROLLBACK is not ignored even though it's one of transaction
management statements because its usage in migration scripts is insane
anyway, and we're better fail on it and not (almost) silently ignore it.

Change-Id: Ie4179c0e9341d42656d66821aaac23f8dcd33927
Closes-bug: 1368391
2015-01-09 14:32:27 -08:00
..
__init__.py move tests/ directory into migrate/tests (much better form) and fix all import lines and other minor issues 2010-06-10 18:08:06 +01:00
test_api.py Port to Python3 2014-04-09 17:32:52 +02:00
test_cfgparse.py tests: Replace "self.assert_" by "self.assertTrue" 2014-03-31 15:08:29 +02:00
test_database.py move tests/ directory into migrate/tests (much better form) and fix all import lines and other minor issues 2010-06-10 18:08:06 +01:00
test_genmodel.py Port to Python3 2014-04-09 17:32:52 +02:00
test_keyedinstance.py tests: Replace "self.assert_" by "self.assertTrue" 2014-03-31 15:08:29 +02:00
test_pathed.py tests: Replace "self.assert_" by "self.assertTrue" 2014-03-31 15:08:29 +02:00
test_repository.py Port to Python3 2014-04-09 17:32:52 +02:00
test_runchangeset.py Updated to OpenStack Build stuff. 2013-07-11 16:54:46 -04:00
test_schema.py Port to Python3 2014-04-09 17:32:52 +02:00
test_schemadiff.py Port to Python3 2014-04-09 17:32:52 +02:00
test_script.py Ignore transaction management statements in SQL scripts 2015-01-09 14:32:27 -08:00
test_shell.py Don't add warnings filter on import 2015-01-08 16:22:59 -06:00
test_template.py tests: Replace "self.assert_" by "self.assertTrue" 2014-03-31 15:08:29 +02:00
test_util.py tests: Replace "self.assert_" by "self.assertTrue" 2014-03-31 15:08:29 +02:00
test_version.py tests: Replace "self.assert_" by "self.assertTrue" 2014-03-31 15:08:29 +02:00