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

Method test_auth_reject

tests/test_connect.py:254–258  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

252 await conn.close()
253
254 async def test_auth_reject(self):
255 with self.assertRaisesRegex(
256 asyncpg.InvalidAuthorizationSpecificationError,
257 'pg_hba.conf rejects connection'):
258 await self._try_connect(user='reject_user')
259
260 async def test_auth_password_cleartext(self):
261 conn = await self.connect(

Callers

nothing calls this directly

Calls 1

_try_connectMethod · 0.95

Tested by

no test coverage detected