Skip to content

Instantly share code, notes, and snippets.

@jamesonjlee
Last active December 23, 2015 14:09
Show Gist options
  • Save jamesonjlee/6647039 to your computer and use it in GitHub Desktop.
Save jamesonjlee/6647039 to your computer and use it in GitHub Desktop.
I might be crazy
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ git log -1
commit 4e8854a41ff985cc4df682e8b3c282f7111f431c
Author: Mike Bayer <[email protected]>
Date: Sat Sep 14 12:08:32 2013 -0400
fix typo, also this is apparently not covered
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ git remote -v
origin https://bitbucket.org/zzzeek/alembic.git (fetch)
origin https://bitbucket.org/zzzeek/alembic.git (push)
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ git branch
* master
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ python --version
Python 2.7.3 -- 64-bit
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ uname -a
Darwin jameson-mbp.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ git clean -fdx
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ python setup.py test > test.out 2>&1
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ ls
CHANGES README.unittests setup.cfg
LICENSE SQLAlchemy-0.8.2-py2.7-macosx-10.6-x86_64.egg setup.py
MANIFEST.in alembic test.cfg
Mako-0.9.0-py2.7.egg alembic.egg-info test.out
MarkupSafe-0.18-py2.7-macosx-10.6-x86_64.egg distribute_setup.py tests
README.rst docs
running test
Checking .pth file support in .
/Users/jameson/Library/Enthought/Canopy_64bit/User/bin/python -E -c pass
Searching for Mako
Reading http://pypi.python.org/simple/Mako/
Best match: Mako 0.9.0
Downloading https://pypi.python.org/packages/source/M/Mako/Mako-0.9.0.tar.gz#md5=e2627ba5c65f83dfe39d9a0892ae517d
Processing Mako-0.9.0.tar.gz
Writing /var/folders/8h/mxgt1gm9799059sv017kc6rw0000gp/T/easy_install-MZhBeD/Mako-0.9.0/setup.cfg
Running Mako-0.9.0/setup.py -q bdist_egg --dist-dir /var/folders/8h/mxgt1gm9799059sv017kc6rw0000gp/T/easy_install-MZhBeD/Mako-0.9.0/egg-dist-tmp-EN87qw
warning: no files found matching '*.xml' under directory 'examples'
warning: no files found matching '*.mako' under directory 'examples'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'
Installed /Users/jameson/playground/alembic_testnig/alembic/Mako-0.9.0-py2.7.egg
Searching for SQLAlchemy>=0.7.3
Reading http://pypi.python.org/simple/SQLAlchemy/
Best match: SQLAlchemy 0.8.2
Downloading https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.8.2.tar.gz#md5=5a33fb43dea93468dbb2a6562ee80b54
Processing SQLAlchemy-0.8.2.tar.gz
Writing /var/folders/8h/mxgt1gm9799059sv017kc6rw0000gp/T/easy_install-FAkwtn/SQLAlchemy-0.8.2/setup.cfg
Running SQLAlchemy-0.8.2/setup.py -q bdist_egg --dist-dir /var/folders/8h/mxgt1gm9799059sv017kc6rw0000gp/T/easy_install-FAkwtn/SQLAlchemy-0.8.2/egg-dist-tmp-P7fDFr
warning: no files found matching '*.jpg' under directory 'doc'
no previously-included directories found matching 'doc/build/output'
ld: warning: directory not found for option '-L/tmp/_py/libraries/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib'
ld: warning: directory not found for option '-L/tmp/_py/libraries/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib'
ld: warning: directory not found for option '-L/tmp/_py/libraries/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib'
zip_safe flag not set; analyzing archive contents...
Installed /Users/jameson/playground/alembic_testnig/alembic/SQLAlchemy-0.8.2-py2.7-macosx-10.6-x86_64.egg
Searching for MarkupSafe>=0.9.2
Reading http://pypi.python.org/simple/MarkupSafe/
Best match: MarkupSafe 0.18
Downloading https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.18.tar.gz#md5=f8d252fd05371e51dec2fe9a36890687
Processing MarkupSafe-0.18.tar.gz
Writing /var/folders/8h/mxgt1gm9799059sv017kc6rw0000gp/T/easy_install-271qTZ/MarkupSafe-0.18/setup.cfg
Running MarkupSafe-0.18/setup.py -q bdist_egg --dist-dir /var/folders/8h/mxgt1gm9799059sv017kc6rw0000gp/T/easy_install-271qTZ/MarkupSafe-0.18/egg-dist-tmp-8A0lZN
ld: warning: directory not found for option '-L/tmp/_py/libraries/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib'
Installed /Users/jameson/playground/alembic_testnig/alembic/MarkupSafe-0.18-py2.7-macosx-10.6-x86_64.egg
running egg_info
creating alembic.egg-info
writing requirements to alembic.egg-info/requires.txt
writing alembic.egg-info/PKG-INFO
writing top-level names to alembic.egg-info/top_level.txt
writing dependency_links to alembic.egg-info/dependency_links.txt
writing entry points to alembic.egg-info/entry_points.txt
writing manifest file 'alembic.egg-info/SOURCES.txt'
reading manifest file 'alembic.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.html' under directory 'docs'
warning: no files found matching '*.css' under directory 'docs'
warning: no files found matching '*.txt' under directory 'docs'
warning: no files found matching '*.js' under directory 'docs'
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.sty' under directory 'docs'
warning: no files found matching '*.dat' under directory 'tests'
no previously-included directories found matching 'docs/build/output'
writing manifest file 'alembic.egg-info/SOURCES.txt'
running build_ext
SKIP: Can't import DBAPI: No module named psycopg2
-------------------- >> begin captured stdout << ---------------------
Creating directory
/Users/jameson/playground/alembic_testnig/alembic/tests/scratch/scripts...done
Creating directory /Users/jameson/playground/alembic_testnig/alembic/tests/scrat
ch/scripts/versions...done
Generating /Users/jameson/playground/alembic_testnig/alembic/tests/scratch/test_
alembic.ini...done
Generating /Users/jameson/playground/alembic_testnig/alembic/tests/scratch/scrip
ts/env.py...done
Generating /Users/jameson/playground/alembic_testnig/alembic/tests/scratch/scrip
ts/README...done
Generating /Users/jameson/playground/alembic_testnig/alembic/tests/scratch/scrip
ts/script.py.mako...done
Please edit configuration/connection/logging settings in '/Users/jameson/playgro
und/alembic_testnig/alembic/tests/scratch/test_alembic.ini' before proceeding.
--------------------- >> end captured stdout << ----------------------
test_autogen (tests.test_autogenerate.AutogenKeyTest) ... ok
test_add_unique_constraint (tests.test_autogenerate.AutogenRenderTest)
autogenerate.render._add_unique_constraint ... ok
test_drop_constraint (tests.test_autogenerate.AutogenRenderTest)
autogenerate.render._drop_constraint ... ok
test_drop_index (tests.test_autogenerate.AutogenRenderTest)
autogenerate.render._drop_index ... ok
test_render_add_column (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_add_column_w_schema (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_add_index (tests.test_autogenerate.AutogenRenderTest)
autogenerate.render._add_index ... ok
test_render_add_index_schema (tests.test_autogenerate.AutogenRenderTest)
autogenerate.render._add_index using schema ... ok
test_render_addtl_args (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_check_constraint_literal (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_check_constraint_sqlexpr (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_col_autoinc_false_mysql (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_col_with_server_default (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_custom (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_drop_column (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_drop_column_w_schema (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_drop_table (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_drop_table_w_schema (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_enum (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_fk_constraint_kwarg (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_fk_constraint_use_alter (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_modify_nullable (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_modify_nullable_w_default (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_modify_nullable_w_schema (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_modify_type (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_modify_type_w_schema (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_quoted_server_default (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_table_upgrade (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_table_w_fk_schema (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_table_w_metadata_schema (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_table_w_metadata_schema_override (tests.test_autogenerate.AutogenRenderTest) ... ok
test_render_table_w_schema (tests.test_autogenerate.AutogenRenderTest) ... ok
test_column_type_modified_when_custom_compare_type_returns_True (tests.test_autogenerate.AutogenerateCustomCompareTypeTest) ... ok
test_column_type_not_modified_when_custom_compare_type_returns_False (tests.test_autogenerate.AutogenerateCustomCompareTypeTest) ... ok
test_uses_custom_compare_type_function (tests.test_autogenerate.AutogenerateCustomCompareTypeTest) ... ok
test_diffs_order (tests.test_autogenerate.AutogenerateDiffOrderTest)
Added in order to test that child tables(tables with FKs) are generated ... ok
test_affinity_typedec (tests.test_autogenerate.AutogenerateDiffTest) ... ok
test_diffs (tests.test_autogenerate.AutogenerateDiffTest)
test generation of diff rules ... ok
test_dont_barf_on_already_reflected (tests.test_autogenerate.AutogenerateDiffTest) ... ok
test_include_object (tests.test_autogenerate.AutogenerateDiffTest) ... ok
test_include_symbol (tests.test_autogenerate.AutogenerateDiffTest) ... ok
test_render_diffs_standard (tests.test_autogenerate.AutogenerateDiffTest)
test a full render including indentation ... ok
test_render_nothing (tests.test_autogenerate.AutogenerateDiffTest) ... ok
test_skip_null_type_comparison_local (tests.test_autogenerate.AutogenerateDiffTest) ... ok
test_skip_null_type_comparison_reflected (tests.test_autogenerate.AutogenerateDiffTest) ... ok
SKIP: Can't import DBAPI: No module named psycopg2
test_diffs (tests.test_autogenerate.AutogenerateUniqueIndexTest)
test generation of diff rules ... FAIL
SKIP: Can't import DBAPI: No module named MySQLdb
test_bulk_insert_round_trip (tests.test_bulk_insert.RoundTripTest) ... ok
test_single_insert_round_trip (tests.test_bulk_insert.RoundTripTest) ... ok
tests.test_bulk_insert.test_bulk_insert ... ok
tests.test_bulk_insert.test_bulk_insert_wrong_cols ... ok
tests.test_bulk_insert.test_bulk_insert_pg ... ok
tests.test_bulk_insert.test_bulk_insert_pg_single ... ok
tests.test_bulk_insert.test_bulk_insert_pg_single_as_sql ... ok
tests.test_bulk_insert.test_bulk_insert_pg_single_big_t_as_sql ... ok
tests.test_bulk_insert.test_bulk_insert_mssql ... ok
tests.test_bulk_insert.test_bulk_insert_as_sql ... ok
tests.test_bulk_insert.test_bulk_insert_as_sql_pg ... ok
tests.test_bulk_insert.test_bulk_insert_as_sql_mssql ... ok
tests.test_bulk_insert.test_invalid_format ... ok
test_history_base_to_num (tests.test_command.StdoutCommandTest) ... ok
test_history_current_to_head_as_b (tests.test_command.StdoutCommandTest) ... ok
test_history_current_to_head_as_base (tests.test_command.StdoutCommandTest) ... ok
test_history_full (tests.test_command.StdoutCommandTest) ... ok
test_history_num_plus_relative (tests.test_command.StdoutCommandTest) ... ok
test_history_num_range (tests.test_command.StdoutCommandTest) ... ok
test_history_num_to_head (tests.test_command.StdoutCommandTest) ... ok
test_history_relative_to_num (tests.test_command.StdoutCommandTest) ... ok
test_ascii_unicode (tests.test_config.OutputEncodingTest) ... ok
test_plain (tests.test_config.OutputEncodingTest) ... ok
test_utf8_unicode (tests.test_config.OutputEncodingTest) ... ok
tests.test_config.test_config_no_file_main_option ... ok
tests.test_config.test_config_no_file_section_option ... ok
tests.test_config.test_standalone_op ... ok
tests.test_config.test_no_script_error ... ok
test_batch_separator_custom (tests.test_mssql.FullEnvironmentTests) ... ok
test_batch_separator_default (tests.test_mssql.FullEnvironmentTests) ... ok
test_begin_comit (tests.test_mssql.FullEnvironmentTests) ... ok
test_add_column (tests.test_mssql.OpTest) ... ok
test_add_column_with_default (tests.test_mssql.OpTest) ... ok
test_alter_add_server_default (tests.test_mssql.OpTest) ... ok
test_alter_column_dont_touch_constraints (tests.test_mssql.OpTest) ... ok
test_alter_column_new_type (tests.test_mssql.OpTest) ... ok
test_alter_column_not_nullable_w_existing_type (tests.test_mssql.OpTest) ... ok
test_alter_column_not_nullable_w_new_type (tests.test_mssql.OpTest) ... ok
test_alter_column_nullable_type_required (tests.test_mssql.OpTest) ... ok
test_alter_column_nullable_w_existing_type (tests.test_mssql.OpTest) ... ok
test_alter_column_nullable_w_new_type (tests.test_mssql.OpTest) ... ok
test_alter_column_rename_mssql (tests.test_mssql.OpTest) ... ok
test_alter_column_rename_quoted_mssql (tests.test_mssql.OpTest) ... ok
test_alter_do_everything (tests.test_mssql.OpTest) ... ok
test_alter_remove_server_default (tests.test_mssql.OpTest) ... ok
test_alter_replace_server_default (tests.test_mssql.OpTest) ... ok
test_drop_column_w_check (tests.test_mssql.OpTest) ... ok
test_drop_column_w_default (tests.test_mssql.OpTest) ... ok
test_drop_index (tests.test_mssql.OpTest) ... ok
tests.test_mysql.test_rename_column ... ok
tests.test_mysql.test_rename_column_serv_default ... ok
tests.test_mysql.test_rename_column_serv_compiled_default ... ok
tests.test_mysql.test_rename_column_autoincrement ... ok
tests.test_mysql.test_col_add_autoincrement ... ok
tests.test_mysql.test_col_remove_autoincrement ... ok
tests.test_mysql.test_col_nullable ... ok
tests.test_mysql.test_col_multi_alter ... ok
tests.test_mysql.test_col_alter_type_required ... ok
tests.test_mysql.test_drop_fk ... ok
tests.test_mysql.test_drop_constraint_primary ... ok
tests.test_mysql.test_drop_unique ... ok
tests.test_mysql.test_drop_check ... ok
tests.test_mysql.test_drop_unknown ... ok
tests.test_mysql.test_drop_generic_constraint ... ok
test_destination_rev_post_context (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_destination_rev_pre_context (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_downgrade_wo_colon (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_head_rev_post_context (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_head_rev_pre_context (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_not_requires_connection (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_requires_connection (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_starting_rev_current_pre_context (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_starting_rev_post_context (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_starting_rev_pre_context (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_starting_rev_pre_context_stamp (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_tag_None (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_tag_cfg_arg (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_tag_cmd_arg (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_tag_pre_context (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
test_tag_pre_context_None (tests.test_offline_environment.OfflineEnvironmentTest) ... ok
tests.test_op.test_rename_table ... ok
tests.test_op.test_rename_table_schema ... ok
tests.test_op.test_rename_table_postgresql ... ok
tests.test_op.test_rename_table_schema_postgresql ... ok
tests.test_op.test_create_index_postgresql_where ... ok
tests.test_op.test_add_column ... ok
tests.test_op.test_add_column_schema ... ok
tests.test_op.test_add_column_with_default ... ok
tests.test_op.test_add_column_schema_with_default ... ok
tests.test_op.test_add_column_fk ... ok
tests.test_op.test_add_column_schema_fk ... ok
tests.test_op.test_add_column_schema_type
Test that a schema type generates its constraints.... ... ok
tests.test_op.test_add_column_schema_schema_type
Test that a schema type generates its constraints.... ... ok
tests.test_op.test_add_column_schema_type_checks_rule
Test that a schema type doesn't generate a ... ok
tests.test_op.test_add_column_fk_self_referential ... ok
tests.test_op.test_add_column_schema_fk_self_referential ... ok
tests.test_op.test_add_column_fk_schema ... ok
tests.test_op.test_add_column_schema_fk_schema ... ok
tests.test_op.test_drop_column ... ok
tests.test_op.test_drop_column_schema ... ok
tests.test_op.test_alter_column_nullable ... ok
tests.test_op.test_alter_column_schema_nullable ... ok
tests.test_op.test_alter_column_not_nullable ... ok
tests.test_op.test_alter_column_schema_not_nullable ... ok
tests.test_op.test_alter_column_rename ... ok
tests.test_op.test_alter_column_schema_rename ... ok
tests.test_op.test_alter_column_type ... ok
tests.test_op.test_alter_column_schema_type ... ok
tests.test_op.test_alter_column_set_default ... ok
tests.test_op.test_alter_column_schema_set_default ... ok
tests.test_op.test_alter_column_set_compiled_default ... ok
tests.test_op.test_alter_column_schema_set_compiled_default ... ok
tests.test_op.test_alter_column_drop_default ... ok
tests.test_op.test_alter_column_schema_drop_default ... ok
tests.test_op.test_alter_column_schema_type_unnamed ... ok
tests.test_op.test_alter_column_schema_schema_type_unnamed ... ok
tests.test_op.test_alter_column_schema_type_named ... ok
tests.test_op.test_alter_column_schema_schema_type_named ... ok
tests.test_op.test_alter_column_schema_type_existing_type ... ok
tests.test_op.test_alter_column_schema_schema_type_existing_type ... ok
tests.test_op.test_alter_column_schema_type_existing_type_no_const ... ok
tests.test_op.test_alter_column_schema_schema_type_existing_type_no_const ... ok
tests.test_op.test_alter_column_schema_type_existing_type_no_new_type ... ok
tests.test_op.test_alter_column_schema_schema_type_existing_type_no_new_type ... ok
tests.test_op.test_add_foreign_key ... ok
tests.test_op.test_add_foreign_key_schema ... ok
tests.test_op.test_add_foreign_key_onupdate ... ok
tests.test_op.test_add_foreign_key_ondelete ... ok
tests.test_op.test_add_foreign_key_deferrable ... ok
tests.test_op.test_add_foreign_key_self_referential ... ok
tests.test_op.test_add_primary_key_constraint ... ok
tests.test_op.test_add_primary_key_constraint_schema ... ok
tests.test_op.test_add_check_constraint ... ok
tests.test_op.test_add_check_constraint_schema ... ok
tests.test_op.test_add_unique_constraint ... ok
tests.test_op.test_add_unique_constraint_schema ... ok
tests.test_op.test_drop_constraint ... ok
tests.test_op.test_drop_constraint_schema ... ok
tests.test_op.test_create_index ... ok
tests.test_op.test_create_index_table_col_event ... ok
tests.test_op.test_add_unique_constraint_col_event ... ok
tests.test_op.test_create_index_schema ... ok
tests.test_op.test_drop_index ... ok
tests.test_op.test_drop_index_schema ... ok
tests.test_op.test_drop_table ... ok
tests.test_op.test_drop_table_schema ... ok
tests.test_op.test_create_table_selfref ... ok
tests.test_op.test_create_table_fk_and_schema ... ok
tests.test_op.test_create_table_no_pk ... ok
tests.test_op.test_create_table_two_fk ... ok
tests.test_op.test_inline_literal ... ok
tests.test_op.test_cant_op ... ok
tests.test_op.test_naming_changes ... /Users/jameson/playground/alembic_testnig/alembic/alembic/util.py:277: UserWarning: Argument 'name' is now named 'new_column_name' for function 'alter_column'
(oldname, newname, fn.__name__))
/Users/jameson/playground/alembic_testnig/alembic/alembic/util.py:277: UserWarning: Argument 'tablename' is now named 'table_name' for function 'drop_index'
(oldname, newname, fn.__name__))
/Users/jameson/playground/alembic_testnig/alembic/alembic/util.py:277: UserWarning: Argument 'type' is now named 'type_' for function 'drop_constraint'
(oldname, newname, fn.__name__))
ok
test_batch_separator_custom (tests.test_oracle.FullEnvironmentTests) ... ok
test_batch_separator_default (tests.test_oracle.FullEnvironmentTests) ... ok
test_begin_comit (tests.test_oracle.FullEnvironmentTests) ... ok
test_add_column (tests.test_oracle.OpTest) ... ok
test_add_column_with_default (tests.test_oracle.OpTest) ... ok
test_alter_add_server_default (tests.test_oracle.OpTest) ... ok
test_alter_column_new_type (tests.test_oracle.OpTest) ... ok
test_alter_column_not_nullable_w_existing_type (tests.test_oracle.OpTest) ... ok
test_alter_column_not_nullable_w_new_type (tests.test_oracle.OpTest) ... ok
test_alter_column_nullable_w_existing_type (tests.test_oracle.OpTest) ... ok
test_alter_column_nullable_w_new_type (tests.test_oracle.OpTest) ... ok
test_alter_column_rename_oracle (tests.test_oracle.OpTest) ... ok
test_alter_do_everything (tests.test_oracle.OpTest) ... ok
test_alter_remove_server_default (tests.test_oracle.OpTest) ... ok
test_alter_replace_server_default (tests.test_oracle.OpTest) ... ok
test_drop_column_w_check (tests.test_oracle.OpTest) ... ok
test_drop_column_w_default (tests.test_oracle.OpTest) ... ok
test_drop_index (tests.test_oracle.OpTest) ... ok
test_offline_distinct_enum_create (tests.test_postgresql.PGOfflineEnumTest) ... ok
test_offline_distinct_enum_drop (tests.test_postgresql.PGOfflineEnumTest) ... ok
test_offline_inline_enum_create (tests.test_postgresql.PGOfflineEnumTest) ... ok
test_offline_inline_enum_drop (tests.test_postgresql.PGOfflineEnumTest) ... ok
SKIP: Can't import DBAPI: No module named psycopg2
SKIP: Can't import DBAPI: No module named psycopg2
test_001_environment (tests.test_revision_create.GeneralOrderedTests) ... ok
test_002_rev_ids (tests.test_revision_create.GeneralOrderedTests) ... ok
test_003_heads (tests.test_revision_create.GeneralOrderedTests) ... ok
test_004_rev (tests.test_revision_create.GeneralOrderedTests) ... ok
test_005_nextrev (tests.test_revision_create.GeneralOrderedTests) ... ok
test_006_from_clean_env (tests.test_revision_create.GeneralOrderedTests) ... ok
test_007_no_refresh (tests.test_revision_create.GeneralOrderedTests) ... ok
test_008_long_name (tests.test_revision_create.GeneralOrderedTests) ... ok
test_args (tests.test_revision_create.ScriptNamingTest) ... ok
test_args_propagate (tests.test_revision_create.TemplateArgsTest) ... ok
test_tmpl_args_revision (tests.test_revision_create.TemplateArgsTest) ... ok
tests.test_revision_paths.test_upgrade_path ... ok
tests.test_revision_paths.test_relative_upgrade_path ... ok
tests.test_revision_paths.test_invalid_relative_upgrade_path ... ok
tests.test_revision_paths.test_downgrade_path ... ok
tests.test_revision_paths.test_relative_downgrade_path ... ok
tests.test_revision_paths.test_invalid_relative_downgrade_path ... ok
tests.test_revision_paths.test_invalid_move_rev_to_none ... ok
tests.test_revision_paths.test_invalid_move_higher_to_lower ... ok
test_encode (tests.test_sql_script.EncodingTest) ... ok
test_begin_comit (tests.test_sql_script.ThreeRevTest) ... ok
test_stamp (tests.test_sql_script.ThreeRevTest) ... ok
test_version_from_middle_update (tests.test_sql_script.ThreeRevTest) ... ok
test_version_from_none_insert (tests.test_sql_script.ThreeRevTest) ... ok
test_version_to_middle (tests.test_sql_script.ThreeRevTest) ... ok
test_version_to_none (tests.test_sql_script.ThreeRevTest) ... ok
tests.test_sqlite.test_add_column ... ok
tests.test_sqlite.test_add_column_implicit_constraint ... /Users/jameson/playground/alembic_testnig/alembic/alembic/util.py:171: UserWarning: Skipping unsupported ALTER for creation of implicit constraint
warnings.warn(msg)
ok
tests.test_sqlite.test_add_explicit_constraint ... ok
tests.test_sqlite.test_drop_explicit_constraint ... ok
test__update_current_rev (tests.test_version_table.TestMigrationContext) ... ok
test_config_default_version_table_name (tests.test_version_table.TestMigrationContext) ... ok
test_config_explicit_version_table_name (tests.test_version_table.TestMigrationContext) ... ok
test_config_explicit_version_table_schema (tests.test_version_table.TestMigrationContext) ... ok
test_get_current_revision (tests.test_version_table.TestMigrationContext) ... ok
test_get_current_revision_creates_version_table (tests.test_version_table.TestMigrationContext) ... ok
test_get_current_revision_error_if_starting_rev_given_online (tests.test_version_table.TestMigrationContext) ... ok
test_get_current_revision_offline (tests.test_version_table.TestMigrationContext) ... ok
test_error_on_new_with_missing_revision (tests.test_versioning.VersionNameTemplateTest) ... ok
test_lookup_legacy (tests.test_versioning.VersionNameTemplateTest) ... ok
test_option (tests.test_versioning.VersionNameTemplateTest) ... ok
test_001_revisions (tests.test_versioning.VersioningTest) ... ok
test_002_upgrade (tests.test_versioning.VersioningTest) ... ok
test_003_downgrade (tests.test_versioning.VersioningTest) ... ok
test_004_downgrade (tests.test_versioning.VersioningTest) ... ok
test_005_upgrade (tests.test_versioning.VersioningTest) ... ok
test_006_upgrade_again (tests.test_versioning.VersioningTest) ... ok
======================================================================
FAIL: test_diffs (tests.test_autogenerate.AutogenerateUniqueIndexTest)
test generation of diff rules
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jameson/playground/alembic_testnig/alembic/tests/test_autogenerate.py", line 859, in test_diffs
eq_(diffs[0][0], "add_constraint")
File "/Users/jameson/playground/alembic_testnig/alembic/tests/__init__.py", line 138, in eq_
assert a == b, msg or "%r != %r" % (a, b)
AssertionError: 'remove_index' != 'add_constraint'
-------------------- >> begin captured logging << --------------------
alembic.migration: INFO: Context impl SQLiteImpl.
alembic.migration: INFO: Will assume non-transactional DDL.
alembic.autogenerate.compare: INFO: Detected changed index 'order_user_id_amount_idx' on 'order': unique=0 to unique=True
alembic.autogenerate.compare: INFO: Detected removed index 'ix_user_name' on 'user'
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 268 tests in 1.257s
FAILED (failures=1, skipped=5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment