summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2020-04-10 17:52:47 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2020-04-10 17:52:47 +0000
commit1ff644d2f16a7517df7f175e1291ddaa501646dd (patch)
treea8f6e624e1500f3b77e43a22eaeb0e7b8ff20100 /test/sql
parentfe591913030a244a9ccfdd47b371609f1f1b44af (diff)
parenta9b068ae564e5e775e312373088545b75aeaa1b0 (diff)
downloadsqlalchemy-1ff644d2f16a7517df7f175e1291ddaa501646dd.tar.gz
Merge "Remove code deprecated before version 1.1"
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_deprecations.py60
-rw-r--r--test/sql/test_types.py1
2 files changed, 0 insertions, 61 deletions
diff --git a/test/sql/test_deprecations.py b/test/sql/test_deprecations.py
index d641c18e2..7c115789b 100644
--- a/test/sql/test_deprecations.py
+++ b/test/sql/test_deprecations.py
@@ -101,17 +101,6 @@ class DeprecationWarningsTest(fixtures.TestBase, AssertsCompiledSQL):
):
self.assert_compile(or_(and_()), "")
- def test_fromclause_count(self):
- with testing.expect_deprecated(
- r"The FromClause.count\(\) method is deprecated, and will be "
- r"removed in a future release."
- ):
- self.assert_compile(
- table("q", column("x")).count(),
- "SELECT count(q.x) AS tbl_row_count FROM q",
- dialect="default",
- )
-
class ConvertUnicodeDeprecationTest(fixtures.TestBase):
@@ -468,55 +457,6 @@ class LateralSubqueryCoercionsTest(fixtures.TablesTest, AssertsCompiledSQL):
)
-class TextTest(fixtures.TestBase, AssertsCompiledSQL):
- __dialect__ = "default"
-
- def test_legacy_bindparam(self):
- with testing.expect_deprecated(
- "The text.bindparams parameter is deprecated"
- ):
- t = text(
- "select * from foo where lala=:bar and hoho=:whee",
- bindparams=[bindparam("bar", 4), bindparam("whee", 7)],
- )
-
- self.assert_compile(
- t,
- "select * from foo where lala=:bar and hoho=:whee",
- checkparams={"bar": 4, "whee": 7},
- )
-
- def test_legacy_typemap(self):
- table1 = table(
- "mytable",
- column("myid", Integer),
- column("name", String),
- column("description", String),
- )
- with testing.expect_deprecated(
- "The text.typemap parameter is deprecated"
- ):
- t = text(
- "select id, name from user",
- typemap=dict(id=Integer, name=String),
- ).subquery()
-
- stmt = select([table1.c.myid]).select_from(
- table1.join(t, table1.c.myid == t.c.id)
- )
- compiled = stmt.compile()
- eq_(
- compiled._create_result_map(),
- {
- "myid": (
- "myid",
- (table1.c.myid, "myid", "myid", "mytable_myid"),
- table1.c.myid.type,
- )
- },
- )
-
-
class SelectableTest(fixtures.TestBase, AssertsCompiledSQL):
__dialect__ = "default"
diff --git a/test/sql/test_types.py b/test/sql/test_types.py
index 4b1fb6a72..2aef6f2a5 100644
--- a/test/sql/test_types.py
+++ b/test/sql/test_types.py
@@ -214,7 +214,6 @@ class AdaptTest(fixtures.TestBase):
subcl.__name__,
), True, subcl, [typ]
- @testing.uses_deprecated(".*Binary.*")
@testing.combinations(_adaptions(), id_="iaaa")
def test_adapt_method(self, is_down_adaption, typ, target_adaptions):
"""ensure all types have a working adapt() method,