MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / TimeTest

Class TimeTest

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

Source from the content-addressed store, hash-verified

704
705
706class TimeTest(_DateFixture, fixtures.TablesTest):
707 __requires__ = ("time",)
708 __backend__ = True
709 datatype = Time
710 data = datetime.time(12, 57, 18)
711
712 @testing.requires.time_implicit_bound
713 def test_select_direct(self, connection):
714 result = connection.scalar(select(literal(self.data)))
715 eq_(result, self.data)
716
717
718class TimeTZTest(_DateFixture, fixtures.TablesTest):

Callers

nothing calls this directly

Calls 1

timeMethod · 0.45

Tested by

no test coverage detected