summaryrefslogtreecommitdiff
path: root/test/dialect/mysql/test_deprecations.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/dialect/mysql/test_deprecations.py')
-rw-r--r--test/dialect/mysql/test_deprecations.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/dialect/mysql/test_deprecations.py b/test/dialect/mysql/test_deprecations.py
new file mode 100644
index 000000000..544284a21
--- /dev/null
+++ b/test/dialect/mysql/test_deprecations.py
@@ -0,0 +1,20 @@
+from sqlalchemy.dialects.mysql import ENUM
+from sqlalchemy.dialects.mysql import SET
+from sqlalchemy.testing import expect_deprecated_20
+from sqlalchemy.testing import fixtures
+
+
+class DeprecateQuoting(fixtures.TestBase):
+ def test_enum_warning(self):
+ ENUM("a", "b")
+ with expect_deprecated_20(
+ "The 'quoting' parameter to :class:`.mysql.ENUM` is deprecated."
+ ):
+ ENUM("a", quoting="foo")
+
+ def test_set_warning(self):
+ SET("a", "b")
+ with expect_deprecated_20(
+ "The 'quoting' parameter to :class:`.mysql.SET` is deprecated.*"
+ ):
+ SET("a", quoting="foo")