summaryrefslogtreecommitdiff
path: root/tests/test_batch.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-06-02 19:37:25 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-06-02 19:37:25 -0400
commit474088e9403fcfc444f114e3948aa77f6f262caf (patch)
treef9f10492277e67b3fbebff657840c37a968e60a4 /tests/test_batch.py
parent9daaaf82e0895a54883609ea0777563929b2ae3b (diff)
downloadalembic-474088e9403fcfc444f114e3948aa77f6f262caf.tar.gz
Set create_constraint=True for Enum / Boolean tests
In SQLAlchemy [1] [2] we are changing the default for Enum / Boolean create_constraint to False. ensure tests that rely upon this setting being True set it explicitly. [1] I0a3fb608ce32143fa757546cc17ba2013e93272a [2] https://github.com/sqlalchemy/sqlalchemy/issues/5367 Change-Id: Ic823124446607c2f245663350632382bd1ca10ba
Diffstat (limited to 'tests/test_batch.py')
-rw-r--r--tests/test_batch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_batch.py b/tests/test_batch.py
index c88ec53..dbcd9b5 100644
--- a/tests/test_batch.py
+++ b/tests/test_batch.py
@@ -188,7 +188,7 @@ class BatchApplyTest(TestBase):
"tname",
m,
Column("id", Integer, primary_key=True),
- Column("flag", Boolean),
+ Column("flag", Boolean(create_constraint=True)),
)
return ApplyBatchImpl(self.impl, t, table_args, table_kwargs, False)
@@ -208,7 +208,7 @@ class BatchApplyTest(TestBase):
"tname",
m,
Column("id", Integer, primary_key=True),
- Column("thing", Enum("a", "b", "c")),
+ Column("thing", Enum("a", "b", "c", create_constraint=True)),
)
return ApplyBatchImpl(self.impl, t, table_args, table_kwargs, False)