(self)
| 193 | ) |
| 194 | |
| 195 | def test_generic_now(self): |
| 196 | assert isinstance(func.now().type, sqltypes.DateTime) |
| 197 | |
| 198 | for ret, dialect in [ |
| 199 | ("CURRENT_TIMESTAMP", sqlite.dialect()), |
| 200 | ("now()", postgresql.dialect()), |
| 201 | ("now()", mysql.dialect()), |
| 202 | ("CURRENT_TIMESTAMP", oracle.dialect()), |
| 203 | ]: |
| 204 | self.assert_compile(func.now(), ret, dialect=dialect) |
| 205 | |
| 206 | def test_generic_random(self): |
| 207 | assert func.random().type == sqltypes.NULLTYPE |
nothing calls this directly
no test coverage detected