MCPcopy Create free account
hub / github.com/python-websockets/websockets / test_logger

Method test_logger

tests/asyncio/test_client.py:140–145  ·  view source on GitHub ↗

Client accepts a logger argument.

(self)

Source from the content-addressed store, hash-verified

138 self.assertEqual(client.latency, 0)
139
140 async def test_logger(self):
141 """Client accepts a logger argument."""
142 logger = logging.getLogger("test")
143 async with serve(*args) as server:
144 async with connect(get_uri(server), logger=logger) as client:
145 self.assertEqual(client.logger.name, logger.name)
146
147 async def test_custom_connection_factory(self):
148 """Client runs ClientConnection factory provided in create_connection."""

Callers

nothing calls this directly

Calls 3

serveFunction · 0.90
get_uriFunction · 0.70
connectFunction · 0.50

Tested by

no test coverage detected