diff --git a/tests/test_op.py b/tests/test_op.py index afd47924..cbb30ea5 100644 --- a/tests/test_op.py +++ b/tests/test_op.py @@ -907,6 +907,7 @@ def test_drop_table_schema(self): op.drop_table("tb_test", schema="foo") context.assert_("DROP TABLE foo.tb_test") + @config.requirements.sqlalchemy_14 def test_drop_table_if_exists(self): context = op_fixture() op.drop_table("tb_test", if_exists=True) @@ -1084,6 +1085,7 @@ def test_create_table_two_fk(self): "FOREIGN KEY(foo_bar) REFERENCES foo (bar))" ) + @config.requirements.sqlalchemy_14 def test_create_table_if_not_exists(self): context = op_fixture() op.create_table( diff --git a/tox.ini b/tox.ini index f1bfcac3..8da09d40 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,11 @@ [tox] - envlist = py-sqlalchemy SQLA_REPO = {env:SQLA_REPO:git+https://github.com/sqlalchemy/sqlalchemy.git} [testenv] +basepython = py311 cov_args=--cov=alembic --cov-report term --cov-report xml deps=pytest>4.6,<8.2