MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_generic_now

Method test_generic_now

test/sql/test_functions.py:209–218  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

207 )
208
209 def test_generic_now(self):
210 assert isinstance(func.now().type, sqltypes.DateTime)
211
212 for ret, dialect in [
213 ("CURRENT_TIMESTAMP", sqlite.dialect()),
214 ("now()", postgresql.dialect()),
215 ("now()", mysql.dialect()),
216 ("CURRENT_TIMESTAMP", oracle.dialect()),
217 ]:
218 self.assert_compile(func.now(), ret, dialect=dialect)
219
220 def test_generic_random(self):
221 assert func.random().type == sqltypes.NULLTYPE

Callers

nothing calls this directly

Calls 3

nowMethod · 0.80
assert_compileMethod · 0.80
dialectMethod · 0.45

Tested by

no test coverage detected