summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCaselIT <cfederico87@gmail.com>2022-06-25 23:19:20 +0200
committerCaselIT <cfederico87@gmail.com>2022-06-25 23:21:38 +0200
commitbff2ce3a118f76f803b8806db07c421a289d03b1 (patch)
treea6441b7b17ed6c9254f98afe1d697ce62258ad9a /tests
parentcd91da9732fc14d1566e7df562c18ebbc54a2d6f (diff)
downloadalembic-bff2ce3a118f76f803b8806db07c421a289d03b1.tar.gz
Make alembic compatible with comments on constraints
Make alembic test compatible with comments on constraint change added in Ia60f578595afdbd6089541c9a00e37997ef78ad3 Change-Id: I9ad803df1d3ccf2a5111266b781061936717b8c8
Diffstat (limited to 'tests')
-rw-r--r--tests/test_batch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_batch.py b/tests/test_batch.py
index b19fa98..adf76cd 100644
--- a/tests/test_batch.py
+++ b/tests/test_batch.py
@@ -1731,6 +1731,8 @@ class BatchRoundTripTest(TestBase):
ck_consts[0]["sqltext"] = re.sub(
r"[\'\"`\(\)]", "", ck_consts[0]["sqltext"]
)
+ for ck in ck_consts:
+ ck.pop("comment", None)
eq_(ck_consts, [{"sqltext": "x > 0", "name": "newck"}])
@testing.combinations(("always",), ("auto",), argnames="recreate")