summaryrefslogtreecommitdiff
path: root/test/sql/test_deprecations.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/test_deprecations.py')
-rw-r--r--test/sql/test_deprecations.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/sql/test_deprecations.py b/test/sql/test_deprecations.py
index 2bac963e4..edaa951e1 100644
--- a/test/sql/test_deprecations.py
+++ b/test/sql/test_deprecations.py
@@ -1767,3 +1767,13 @@ class DMLTest(fixtures.TestBase, AssertsCompiledSQL):
self.assert_compile(
stmt, "UPDATE foo SET bar=%s LIMIT 10", dialect="mysql"
)
+
+
+class TableDeprecationTest(fixtures.TestBase):
+ def test_mustexists(self):
+ with testing.expect_deprecated("Deprecated alias of .*must_exist"):
+
+ with testing.expect_raises_message(
+ exc.InvalidRequestError, "Table 'foo' not defined"
+ ):
+ Table("foo", MetaData(), mustexist=True)