hooks:
- id: zimports
+- repo: https://github.com/pycqa/flake8
+ rev: master
+ hooks:
+ - id: flake8
+ additional_dependencies:
+ - flake8-import-order
+ - flake8-builtins
+ - flake8-docstrings
+ - flake8-rst-docstrings
+ - pydocstyle<4.0.0
+ - pygments
+
+
+
from .runtime import environment
from .runtime import migration
-__version__ = '1.3.3'
+__version__ = "1.3.3"
package_dir = path.abspath(path.dirname(__file__))
+++ /dev/null
-####### NOTE:
-####### This file is deprecated as is nose support.
-####### Please use py.test or the tox test runner to run tests.
-####### See README.unittests.rst
-
-
-import os
-# use bootstrapping so that test plugins are loaded
-# without touching the main library before coverage starts
-bootstrap_file = os.path.join(
- os.path.dirname(__file__), "alembic",
- "testing", "plugin", "bootstrap.py"
-)
-
-with open(bootstrap_file) as f:
- code = compile(f.read(), "bootstrap.py", 'exec')
- to_bootstrap = "nose"
- exec(code, globals(), locals())
-
-
-from noseplugin import NoseSQLAlchemy
-import nose
-nose.main(addplugins=[NoseSQLAlchemy()])
def test_create_table_comment(self):
# this is handled by SQLAlchemy's compilers
context = op_fixture("oracle")
- op.create_table_comment(
- 't2',
- comment='t2 table',
- schema='foo'
- )
- context.assert_(
- "COMMENT ON TABLE foo.t2 IS 't2 table'"
- )
+ op.create_table_comment("t2", comment="t2 table", schema="foo")
+ context.assert_("COMMENT ON TABLE foo.t2 IS 't2 table'")
@config.requirements.comments_api
@config.requirements.sqlalchemy_issue_4436
def test_drop_table_comment(self):
# this is handled by SQLAlchemy's compilers
context = op_fixture("oracle")
- op.drop_table_comment(
- 't2',
- existing_comment='t2 table',
- schema='foo'
- )
- context.assert_(
- "COMMENT ON TABLE foo.t2 IS ''"
- )
+ op.drop_table_comment("t2", existing_comment="t2 table", schema="foo")
+ context.assert_("COMMENT ON TABLE foo.t2 IS ''")
def test_drop_index(self):
context = op_fixture("oracle")