diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-13 17:50:50 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-13 17:50:50 -0400 |
| commit | 190961157d0e277ed7a7f965961ad1e75ea89e04 (patch) | |
| tree | b9e04fdea2dfa276db125a4ded58d7e0d464ef7e /lib/sqlalchemy/testing | |
| parent | 2c9ff9115c72f25cfcc500cd9f42e1035e54e582 (diff) | |
| parent | f39767ad727fcc9493d41451d7112d4f3459e9c4 (diff) | |
| download | sqlalchemy-190961157d0e277ed7a7f965961ad1e75ea89e04.tar.gz | |
Merge branch 'pr126'
Conflicts:
doc/build/changelog/changelog_10.rst
Diffstat (limited to 'lib/sqlalchemy/testing')
| -rw-r--r-- | lib/sqlalchemy/testing/plugin/plugin_base.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py index 4c245e9e9..9c63a2e1d 100644 --- a/lib/sqlalchemy/testing/plugin/plugin_base.py +++ b/lib/sqlalchemy/testing/plugin/plugin_base.py @@ -315,7 +315,7 @@ def _setup_requirements(argument): @post def _prep_testing_database(options, file_config): from sqlalchemy.testing import config - from sqlalchemy import schema, inspect + from sqlalchemy import schema, inspect, testing if options.dropfirst: for cfg in config.Config.all_configs(): @@ -358,6 +358,14 @@ def _prep_testing_database(options, file_config): schema="test_schema") )) + if testing.against("postgresql"): + from sqlalchemy.dialects import postgresql + for enum in inspector.get_enums("*"): + e.execute(postgresql.DropEnumType( + postgresql.ENUM( + name=enum['name'], + schema=enum['schema']))) + @post def _set_table_options(options, file_config): |
