diff options
Diffstat (limited to 'test/sql')
-rw-r--r-- | test/sql/test_compiler.py | 2 | ||||
-rw-r--r-- | test/sql/test_type_expressions.py | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index 04e3171a9..06cb80ba0 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -2040,6 +2040,8 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL): 'Incorrect number of expected results') eq_(str(cast(tbl.c.v1, Numeric).compile(dialect=dialect)), 'CAST(casttest.v1 AS %s)' % expected_results[0]) + eq_(str(tbl.c.v1.cast(Numeric).compile(dialect=dialect)), + 'CAST(casttest.v1 AS %s)' % expected_results[0]) eq_(str(cast(tbl.c.v1, Numeric(12, 9)).compile(dialect=dialect)), 'CAST(casttest.v1 AS %s)' % expected_results[1]) eq_(str(cast(tbl.c.ts, Date).compile(dialect=dialect)), diff --git a/test/sql/test_type_expressions.py b/test/sql/test_type_expressions.py index c35e9ff53..574edfe9e 100644 --- a/test/sql/test_type_expressions.py +++ b/test/sql/test_type_expressions.py @@ -40,13 +40,6 @@ class SelectTest(_ExprFixture, fixtures.TestBase, AssertsCompiledSQL): "SELECT CAST(test_table.y AS VARCHAR) AS anon_1 FROM test_table" ) - def test_cast_method(self): - table = self._fixture() - self.assert_compile( - select([table.c.y.cast(String)]), - "SELECT CAST(test_table.y AS VARCHAR) AS anon_1 FROM test_table" - ) - def test_select_cols_use_labels(self): table = self._fixture() |