MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / DateTimeHistoricTest

Class DateTimeHistoricTest

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

Source from the content-addressed store, hash-verified

770
771
772class DateTimeHistoricTest(_DateFixture, fixtures.TablesTest):
773 __requires__ = ("datetime_historic",)
774 __backend__ = True
775 datatype = DateTime
776 data = datetime.datetime(1850, 11, 10, 11, 52, 35)
777
778 @testing.requires.date_implicit_bound
779 def test_select_direct(self, connection):
780 result = connection.scalar(select(literal(self.data)))
781 eq_(result, self.data)
782
783
784class DateHistoricTest(_DateFixture, fixtures.TablesTest):

Callers

nothing calls this directly

Calls 1

datetimeMethod · 0.45

Tested by

no test coverage detected