diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2022-02-25 17:47:44 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-02-25 17:47:44 +0000 |
| commit | 2d97c388eae4345840f745337ec033045651b36d (patch) | |
| tree | 50ffde647a0506e86de955af8ea3685c65f20b9d /test/sql | |
| parent | 51e6a62ab371897d646a5986b9139838402c57df (diff) | |
| parent | b9d231869d7e39decabdec12478e359c4dcb95ee (diff) | |
| download | sqlalchemy-2d97c388eae4345840f745337ec033045651b36d.tar.gz | |
Merge "Implement generic Double and related fixed types" into main
Diffstat (limited to 'test/sql')
| -rw-r--r-- | test/sql/test_types.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/sql/test_types.py b/test/sql/test_types.py index f441c3b46..4e1048cb6 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -23,6 +23,7 @@ from sqlalchemy import DateTime from sqlalchemy import DECIMAL from sqlalchemy import dialects from sqlalchemy import distinct +from sqlalchemy import Double from sqlalchemy import Enum from sqlalchemy import exc from sqlalchemy import FLOAT @@ -277,6 +278,7 @@ class AdaptTest(fixtures.TestBase): eq_(types.Numeric(asdecimal=False).python_type, float) eq_(types.LargeBinary().python_type, bytes) eq_(types.Float().python_type, float) + eq_(types.Double().python_type, float) eq_(types.Interval().python_type, datetime.timedelta) eq_(types.Date().python_type, datetime.date) eq_(types.DateTime().python_type, datetime.datetime) @@ -3455,6 +3457,9 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): dialects.postgresql.FLOAT(), "FLOAT", allow_dialect_select=True ) + def test_default_compile_double(self): + self.assert_compile(Double(), "DOUBLE") + def test_default_compile_mysql_integer(self): self.assert_compile( dialects.mysql.INTEGER(display_width=5), |
