MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / DateTimeTZTest

Class DateTimeTZTest

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

Source from the content-addressed store, hash-verified

671
672
673class 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
687class DateTimeMicrosecondsTest(_DateFixture, fixtures.TablesTest):

Callers

nothing calls this directly

Calls 2

DateTimeClass · 0.85
datetimeMethod · 0.45

Tested by

no test coverage detected