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

Method _test_works

tests/test_connect.py:2086–2092  ·  view source on GitHub ↗
(self, **conn_args)

Source from the content-addressed store, hash-verified

2084 )
2085
2086 async def _test_works(self, **conn_args):
2087 con = await self.connect(**conn_args)
2088
2089 try:
2090 self.assertEqual(await con.fetchval('SELECT 42'), 42)
2091 finally:
2092 await con.close()
2093
2094 async def test_ssl_connection_client_auth_custom_context(self):
2095 for key_file in (CLIENT_SSL_KEY_FILE, CLIENT_SSL_PROTECTED_KEY_FILE):

Calls 3

connectMethod · 0.45
fetchvalMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected