summaryrefslogtreecommitdiff
path: root/tests/test_sqlite.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-09-09 12:24:43 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-09-09 12:24:43 -0400
commit10d3556a5501563a4110733ecc9d9ba8eb172a99 (patch)
tree0646aa84d3f89c2f9cf59ba298e06d5c1f312ee1 /tests/test_sqlite.py
parenteffe3d89238923c5913449879adb1c685eb17c60 (diff)
downloadalembic-10d3556a5501563a4110733ecc9d9ba8eb172a99.tar.gz
- do an autopep8 pass for just about everything other
than line length
Diffstat (limited to 'tests/test_sqlite.py')
-rw-r--r--tests/test_sqlite.py7
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",
)
-