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

Method test_connection_implicit_host

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

Source from the content-addressed store, hash-verified

1869 await verify_fails('verify-full')
1870
1871 async def test_connection_implicit_host(self):
1872 conn_spec = self.get_connection_spec()
1873 con = await asyncpg.connect(
1874 port=conn_spec.get('port'),
1875 database=conn_spec.get('database'),
1876 user=conn_spec.get('user'))
1877 await con.close()
1878
1879 @unittest.skipIf(os.environ.get('PGHOST'), 'unmanaged cluster')
1880 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