MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / __init__

Method __init__

tests/test_kook/test_kook_client.py:38–44  ·  view source on GitHub ↗
(self, config, callback)

Source from the content-addressed store, hash-verified

36def mock_kook_client(config: KookConfig, event_callback):
37 class MockKookClient:
38 def __init__(self, config, callback):
39 self.bot_id = TEST_BOT_ID
40 self.bot_nickname = TEST_BOT_NICKNAME
41 self.bot_username = TEST_BOT_USERNAME
42 self.http_client = mock_http_client()
43 self.connect = AsyncMock()
44 self.close = AsyncMock()
45
46 async def __aenter__(self):
47 return self

Callers

nothing calls this directly

Calls 1

mock_http_clientFunction · 0.90

Tested by

no test coverage detected