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

Method _get_statement

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected