]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
use sqlalchemy.testing for mock
authorTobias Pfeiffer <tgp@preferred.jp>
Mon, 21 Nov 2022 05:38:57 +0000 (14:38 +0900)
committerTobias Pfeiffer <tgp@preferred.jp>
Mon, 21 Nov 2022 05:38:57 +0000 (14:38 +0900)
test/dialect/test_sqlite.py

index a5e2bec4b7606be2d1fcd357c16b904d78eac2e6..da10220c33e0ae2df088b2ae2ee50d2b93f5a81f 100644 (file)
@@ -4,7 +4,6 @@
 import datetime
 import json
 import os
-from unittest.mock import ANY
 
 from sqlalchemy import and_
 from sqlalchemy import bindparam
@@ -2338,13 +2337,13 @@ class ConstraintReflectionTest(fixtures.TestBase):
                         "unique": 1,
                         "name": "ix_partial",
                         "column_names": ["x"],
-                        "dialect_options": {"sqlite_where": ANY},
+                        "dialect_options": {"sqlite_where": mock.ANY},
                     },
                     {
                         "unique": 1,
                         "name": "ix_partial2",
                         "column_names": ["x", "y"],
-                        "dialect_options": {"sqlite_where": ANY},
+                        "dialect_options": {"sqlite_where": mock.ANY},
                     },
                 ],
             )