MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_three

Method test_three

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

Source from the content-addressed store, hash-verified

1518 )
1519
1520 def test_three(self, connection):
1521 self.tables.t
1522
1523 actual_ts = self.bind.connect().execute(
1524 func.current_timestamp()
1525 ).scalar() - datetime.timedelta(days=5)
1526 self._test(
1527 connection,
1528 func.current_timestamp() - datetime.timedelta(days=5),
1529 {
1530 "hour": actual_ts.hour,
1531 "year": actual_ts.year,
1532 "month": actual_ts.month,
1533 },
1534 )
1535
1536 def test_four(self, connection):
1537 t = self.tables.t

Callers

nothing calls this directly

Calls 5

_testMethod · 0.95
current_timestampMethod · 0.80
scalarMethod · 0.45
executeMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected