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

Method test_auth_md5_unsupported

tests/test_connect.py:385–390  ·  view source on GitHub ↗
(self, _)

Source from the content-addressed store, hash-verified

383
384 @unittest.mock.patch('hashlib.md5', side_effect=ValueError("no md5"))
385 async def test_auth_md5_unsupported(self, _):
386 with self.assertRaisesRegex(
387 exceptions.InternalClientError,
388 ".*no md5.*",
389 ):
390 await self.connect(user='md5_user', password=CORRECT_PASSWORD)
391
392
393@unittest.skipIf(

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected