diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-06-02 19:37:25 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-06-02 19:37:25 -0400 |
commit | 474088e9403fcfc444f114e3948aa77f6f262caf (patch) | |
tree | f9f10492277e67b3fbebff657840c37a968e60a4 /tests/test_batch.py | |
parent | 9daaaf82e0895a54883609ea0777563929b2ae3b (diff) | |
download | alembic-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.py | 4 |
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) |