MCPcopy
hub / github.com/MagicStack/asyncpg / test_connection_implicit_host

Method test_connection_implicit_host

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

Source from the content-addressed store, hash-verified

1745 await verify_fails('verify-full')
1746
1747 async def test_connection_implicit_host(self):
1748 conn_spec = self.get_connection_spec()
1749 con = await asyncpg.connect(
1750 port=conn_spec.get('port'),
1751 database=conn_spec.get('database'),
1752 user=conn_spec.get('user'))
1753 await con.close()
1754
1755 @unittest.skipIf(os.environ.get('PGHOST'), 'unmanaged cluster')
1756 async def test_connection_no_home_dir(self):

Callers

nothing calls this directly

Calls 4

getMethod · 0.80
get_connection_specMethod · 0.45
connectMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected