MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_twelve

Method test_twelve

test/dialect/postgresql/test_query.py:1604–1615  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

1602 )
1603
1604 def test_twelve(self, connection):
1605 t = self.tables.t
1606
1607 actual_ts = connection.scalar(
1608 func.current_timestamp()
1609 ) - datetime.datetime(2012, 5, 10, 12, 15, 25, tzinfo=self.TZ())
1610
1611 self._test(
1612 connection,
1613 func.current_timestamp() - t.c.dttz,
1614 {"day": actual_ts.days},
1615 )
1616
1617 def test_thirteen(self, connection):
1618 t = self.tables.t

Callers

nothing calls this directly

Calls 4

_testMethod · 0.95
current_timestampMethod · 0.80
scalarMethod · 0.45
datetimeMethod · 0.45

Tested by

no test coverage detected