diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2020-04-10 17:52:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2020-04-10 17:52:47 +0000 |
commit | 1ff644d2f16a7517df7f175e1291ddaa501646dd (patch) | |
tree | a8f6e624e1500f3b77e43a22eaeb0e7b8ff20100 /test/dialect/mysql/test_deprecations.py | |
parent | fe591913030a244a9ccfdd47b371609f1f1b44af (diff) | |
parent | a9b068ae564e5e775e312373088545b75aeaa1b0 (diff) | |
download | sqlalchemy-1ff644d2f16a7517df7f175e1291ddaa501646dd.tar.gz |
Merge "Remove code deprecated before version 1.1"
Diffstat (limited to 'test/dialect/mysql/test_deprecations.py')
-rw-r--r-- | test/dialect/mysql/test_deprecations.py | 20 |
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") |