diff options
Diffstat (limited to 'tests/test_sqlite.py')
-rw-r--r-- | tests/test_sqlite.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py index 9ceb78e..ea9411d 100644 --- a/tests/test_sqlite.py +++ b/tests/test_sqlite.py @@ -1,8 +1,9 @@ from tests import op_fixture, assert_raises_message from alembic import op -from sqlalchemy import Integer, Column, Boolean +from sqlalchemy import Integer, Column, Boolean from sqlalchemy.sql import column + def test_add_column(): context = op_fixture('sqlite') op.add_column('t1', Column('c1', Integer)) @@ -10,6 +11,7 @@ def test_add_column(): 'ALTER TABLE t1 ADD COLUMN c1 INTEGER' ) + def test_add_column_implicit_constraint(): context = op_fixture('sqlite') op.add_column('t1', Column('c1', Boolean)) @@ -17,6 +19,7 @@ def test_add_column_implicit_constraint(): 'ALTER TABLE t1 ADD COLUMN c1 BOOLEAN' ) + def test_add_explicit_constraint(): context = op_fixture('sqlite') assert_raises_message( @@ -28,6 +31,7 @@ def test_add_explicit_constraint(): column('name') > 5 ) + def test_drop_explicit_constraint(): context = op_fixture('sqlite') assert_raises_message( @@ -37,4 +41,3 @@ def test_drop_explicit_constraint(): "foo", "sometable", ) - |