Skip to content

Commit

Permalink
Add sqlalchemy 1.4 requirement to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agriffin-grow committed Sep 3, 2024
1 parent 1063a5a commit 747ae3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/test_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 747ae3f

Please sign in to comment.