MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _run_connection_test

Method _run_connection_test

tests/test_connect.py:2296–2301  ·  view source on GitHub ↗
(
        self, connect, target_attribute, expected_port
    )

Source from the content-addressed store, hash-verified

2294class TestConnectionAttributes(tb.HotStandbyTestCase):
2295
2296 async def _run_connection_test(
2297 self, connect, target_attribute, expected_port
2298 ):
2299 conn = await connect(target_session_attrs=target_attribute)
2300 self.assertTrue(_get_connected_host(conn).endswith(expected_port))
2301 await conn.close()
2302
2303 async def test_target_server_attribute_port(self):
2304 master_port = self.master_cluster.get_connection_spec()['port']

Callers 1

Calls 3

connectFunction · 0.85
_get_connected_hostFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected