MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _get_statement

Method _get_statement

tests/test_timeout.py:141–143  ·  view source on GitHub ↗
(self, query, timeout, **kwargs)

Source from the content-addressed store, hash-verified

139class SlowPrepareConnection(pg_connection.Connection):
140 """Connection class to test timeouts."""
141 async def _get_statement(self, query, timeout, **kwargs):
142 await asyncio.sleep(0.3)
143 return await super()._get_statement(query, timeout, **kwargs)
144
145
146class TestTimeoutCoversPrepare(tb.ConnectedTestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected