From 747ae3f345eca63f428140a2da5843ecc52f06e7 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 3 Sep 2024 09:37:15 -0500 Subject: [PATCH] Add sqlalchemy 1.4 requirement to tests --- tests/test_op.py | 2 ++ tox.ini | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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