| 671 | |
| 672 | |
| 673 | class DateTimeTZTest(_DateFixture, fixtures.TablesTest): |
| 674 | __requires__ = ("datetime_timezone",) |
| 675 | __backend__ = True |
| 676 | datatype = DateTime(timezone=True) |
| 677 | data = datetime.datetime( |
| 678 | 2012, 10, 15, 12, 57, 18, tzinfo=datetime.timezone.utc |
| 679 | ) |
| 680 | |
| 681 | @testing.requires.datetime_implicit_bound |
| 682 | def test_select_direct(self, connection): |
| 683 | result = connection.scalar(select(literal(self.data))) |
| 684 | eq_(result, self.data) |
| 685 | |
| 686 | |
| 687 | class DateTimeMicrosecondsTest(_DateFixture, fixtures.TablesTest): |