]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Add test for sqlite round trip compare w func.now()
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 10 Dec 2019 14:19:00 +0000 (09:19 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 10 Dec 2019 14:19:00 +0000 (09:19 -0500)
Add explicit test to confirm the issue described
in #634 is not reproducible.

Change-Id: I31c9ba35c501fef0958f15d122ea1674a171d78e

tests/test_sqlite.py

index 2c416bcb3f0808ae79736602a23e46eaf52d2cef..ef87c8debb783bdd6bc177bdd9ed7e36054c1eb6 100644 (file)
@@ -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