MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / DateTimeTest

Class DateTimeTest

lib/sqlalchemy/testing/suite/test_types.py:661–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659
660
661class 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
673class DateTimeTZTest(_DateFixture, fixtures.TablesTest):

Callers

nothing calls this directly

Calls 1

datetimeMethod · 0.45

Tested by

no test coverage detected