MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_twelve

Method test_twelve

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

Source from the content-addressed store, hash-verified

1532 )
1533
1534 def test_twelve(self, connection):
1535 t = self.tables.t
1536
1537 actual_ts = connection.scalar(
1538 func.current_timestamp()
1539 ) - datetime.datetime(2012, 5, 10, 12, 15, 25, tzinfo=self.TZ())
1540
1541 self._test(
1542 connection,
1543 func.current_timestamp() - t.c.dttz,
1544 {"day": actual_ts.days},
1545 )
1546
1547 def test_thirteen(self, connection):
1548 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