diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-11-25 10:31:20 -0500 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2023-05-11 22:24:53 +0200 |
commit | df75e85489b9ae69fffff2c5ad2594b30bed2fd4 (patch) | |
tree | 1669378a851faf81724f3d5e83ab63814cb43e3f /tests/test_batch.py | |
parent | 92e54a0e1c96cecd99397cb1aee9c3bb28f780c6 (diff) | |
download | alembic-df75e85489b9ae69fffff2c5ad2594b30bed2fd4.tar.gz |
keyword only arguments in ops
Argument signatures of Alembic operations now enforce keyword-only
arguments as passed as keyword and not positionally, such as
:paramref:`.Operations.create_table.schema`,
:paramref:`.Operations.add_column.type_`, etc.
Change-Id: I91b453c8848dc5d24d63840bfd7ce4d22dd0e693
Fixes: #1130
Diffstat (limited to 'tests/test_batch.py')
-rw-r--r-- | tests/test_batch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_batch.py b/tests/test_batch.py index 52f9baf..66d59fd 100644 --- a/tests/test_batch.py +++ b/tests/test_batch.py @@ -1778,7 +1778,7 @@ class BatchRoundTripTest(TestBase): with self.op.batch_alter_table( "ck_table", recreate=recreate ) as batch_op: - batch_op.drop_constraint("ck", "check") + batch_op.drop_constraint("ck", type_="check") ck_consts = inspect(self.conn).get_check_constraints("ck_table") eq_(ck_consts, []) |