From 2eac31a66cd6ba550249355bcfde06661e02c822 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 10 Dec 2019 09:19:00 -0500 Subject: [PATCH] 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 --- tests/test_sqlite.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.2