| 659 | |
| 660 | |
| 661 | class DateTimeTest(_DateFixture, fixtures.TablesTest): |
| 662 | __requires__ = ("datetime",) |
| 663 | __backend__ = True |
| 664 | datatype = DateTime |
| 665 | data = datetime.datetime(2012, 10, 15, 12, 57, 18) |
| 666 | |
| 667 | @testing.requires.datetime_implicit_bound |
| 668 | def test_select_direct(self, connection): |
| 669 | result = connection.scalar(select(literal(self.data))) |
| 670 | eq_(result, self.data) |
| 671 | |
| 672 | |
| 673 | class DateTimeTZTest(_DateFixture, fixtures.TablesTest): |