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

Method test_three

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

Source from the content-addressed store, hash-verified

1448 )
1449
1450 def test_three(self, connection):
1451 self.tables.t
1452
1453 actual_ts = self.bind.connect().execute(
1454 func.current_timestamp()
1455 ).scalar() - datetime.timedelta(days=5)
1456 self._test(
1457 connection,
1458 func.current_timestamp() - datetime.timedelta(days=5),
1459 {
1460 "hour": actual_ts.hour,
1461 "year": actual_ts.year,
1462 "month": actual_ts.month,
1463 },
1464 )
1465
1466 def test_four(self, connection):
1467 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