U of?@sdZddlmZddlmZddlmZddlmZddlmZddlmZdd l m Z dd l m Z e ed d d Z Gddde e ZdS)z-Test against the builders in the op.* module.)Column)event)Integer)String)Table)text)AlterColRoundTripFixture)TestBaseZafter_parent_attachcCs|jdkr|tdtdS)NZtbl_with_auto_appended_columnbat)name append_columnrr)tablemetadatarK/opt/hc_python/lib/python3.8/site-packages/alembic/testing/suite/test_op.py _add_colss rc@s@eZdZdZddZddZddZdd Zd d Zd d Z dS)BackendAlterColumnTestTcCs|iddidS)Nr Znewname_run_alter_colselfrrrtest_rename_columnsz)BackendAlterColumnTest.test_rename_columncCs|dtidtdidS)Ntype2)rrrrrrrtest_modify_type_int_strsz/BackendAlterColumnTest.test_modify_type_int_strcCs|dtidtdidS)Nrserver_default5rrrrrrrtest_add_server_default_intsz2BackendAlterColumnTest.test_add_server_default_intcCs"|ttdddtdidS)N2)rrrrrrrrrtest_modify_server_default_int s  z5BackendAlterColumnTest.test_modify_server_default_intcCs|iddidS)NnullableFrrrrrtest_modify_nullable_to_non&sz2BackendAlterColumnTest.test_modify_nullable_to_noncCs|ddiddidS)Nr"FTrrrrr$test_modify_non_nullable_to_nullable)sz;BackendAlterColumnTest.test_modify_non_nullable_to_nullableN) __name__ __module__ __qualname__Z __backend__rrrr!r#r$rrrrrsrN)__doc__Z sqlalchemyrrrrrZsqlalchemy.sqlrZtesting.fixturesr r Z listens_forrrrrrrs