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

Class TimestampMicrosecondsTest

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

Source from the content-addressed store, hash-verified

692
693
694class TimestampMicrosecondsTest(_DateFixture, fixtures.TablesTest):
695 __requires__ = ("timestamp_microseconds",)
696 __backend__ = True
697 datatype = TIMESTAMP
698 data = datetime.datetime(2012, 10, 15, 12, 57, 18, 396)
699
700 @testing.requires.timestamp_microseconds_implicit_bound
701 def test_select_direct(self, connection):
702 result = connection.scalar(select(literal(self.data)))
703 eq_(result, self.data)
704
705
706class TimeTest(_DateFixture, fixtures.TablesTest):

Callers

nothing calls this directly

Calls 1

datetimeMethod · 0.45

Tested by

no test coverage detected