MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / test_auth_bad_user

Method test_auth_bad_user

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

Source from the content-addressed store, hash-verified

239 return await self.connect(**kwargs)
240
241 async def test_auth_bad_user(self):
242 with self.assertRaises(
243 asyncpg.InvalidAuthorizationSpecificationError):
244 await self._try_connect(user='__nonexistent__')
245
246 async def test_auth_trust(self):
247 conn = await self.connect(user='trust_user')

Callers

nothing calls this directly

Calls 1

_try_connectMethod · 0.95

Tested by

no test coverage detected