summaryrefslogtreecommitdiff
path: root/tests/test_postgresql.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2023-05-12 16:00:07 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2023-05-12 16:00:07 +0000
commit497c6c86b9547eed2ac297b1618300430578b86f (patch)
treec7e3480718beb7ce2ea8ff9ef2a34d491b9f1d36 /tests/test_postgresql.py
parent230a2932f646800b006c00b434be95c164598525 (diff)
parentdf75e85489b9ae69fffff2c5ad2594b30bed2fd4 (diff)
downloadalembic-497c6c86b9547eed2ac297b1618300430578b86f.tar.gz
Merge "keyword only arguments in ops" into main
Diffstat (limited to 'tests/test_postgresql.py')
-rw-r--r--tests/test_postgresql.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/test_postgresql.py b/tests/test_postgresql.py
index 818dae7..82a3f3b 100644
--- a/tests/test_postgresql.py
+++ b/tests/test_postgresql.py
@@ -122,9 +122,17 @@ class PostgresqlOpTest(TestBase):
op.create_index("i", "t", ["c1", "c2"], unique=False)
context.assert_("CREATE INDEX i ON t (c1, c2)")
- def test_drop_index_postgresql_concurrently(self):
+ @config.combinations("include_table", "no_table", argnames="include_table")
+ def test_drop_index_postgresql_concurrently(self, include_table):
context = op_fixture("postgresql")
- op.drop_index("geocoded", "locations", postgresql_concurrently=True)
+ if include_table == "include_table":
+ op.drop_index(
+ "geocoded",
+ table_name="locations",
+ postgresql_concurrently=True,
+ )
+ else:
+ op.drop_index("geocoded", postgresql_concurrently=True)
context.assert_("DROP INDEX CONCURRENTLY geocoded")
def test_alter_column_type_using(self):