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

Method test_auth_bad_user

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

Source from the content-addressed store, hash-verified

243 return await self.connect(**kwargs)
244
245 async def test_auth_bad_user(self):
246 with self.assertRaises(
247 asyncpg.InvalidAuthorizationSpecificationError):
248 await self._try_connect(user='__nonexistent__')
249
250 async def test_auth_trust(self):
251 conn = await self.connect(user='trust_user')

Callers

nothing calls this directly

Calls 1

_try_connectMethod · 0.95

Tested by

no test coverage detected