Skip to content

Commit

Permalink
Add test for sqlite round trip compare w func.now()
Browse files Browse the repository at this point in the history
Add explicit test to confirm the issue described
in #634 is not reproducible.

Change-Id: I31c9ba35c501fef0958f15d122ea1674a171d78e
  • Loading branch information
zzzeek committed Dec 10, 2019
1 parent 12cc251 commit 2eac31a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_sqlite.py
Expand Up @@ -165,6 +165,10 @@ def test_compare_current_timestamp_func(self):
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
Expand Down

0 comments on commit 2eac31a

Please sign in to comment.