From: Mike Bayer Date: Tue, 10 Dec 2019 14:19:00 +0000 (-0500) Subject: Add test for sqlite round trip compare w func.now() X-Git-Tag: rel_1_3_2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eac31a66cd6ba550249355bcfde06661e02c822;p=thirdparty%2Fsqlalchemy%2Falembic.git Add test for sqlite round trip compare w func.now() Add explicit test to confirm the issue described in #634 is not reproducible. Change-Id: I31c9ba35c501fef0958f15d122ea1674a171d78e --- diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py index 2c416bcb..ef87c8de 100644 --- a/tests/test_sqlite.py +++ b/tests/test_sqlite.py @@ -165,6 +165,10 @@ class SQLiteDefaultCompareTest(TestBase): DateTime(), func.datetime("now", "localtime") ) + @config.requirements.sqlalchemy_12 + def test_compare_current_timestamp_func_now(self): + self._compare_default_roundtrip(DateTime(), func.now()) + def test_compare_current_timestamp_text(self): # SQLAlchemy doesn't render the parenthesis for a # SQLite server default specified as text(), so users will be doing