|
16 | 16 | ) |
17 | 17 | from chatom.mcp import build_mcp_server |
18 | 18 |
|
19 | | -# --------------------------------------------------------------------------- |
20 | | -# Minimal mock backend (same pattern as chatom/tests/test_agent.py) |
21 | | -# --------------------------------------------------------------------------- |
22 | | - |
23 | 19 |
|
24 | 20 | class _MockBackend: |
25 | 21 | """Bare-bones BackendBase stand-in for MCP server tests.""" |
@@ -133,11 +129,6 @@ async def add_reaction( |
133 | 129 | self.reactions.append({"message_id": msg_id, "emoji": emoji, "channel": ch_id}) |
134 | 130 |
|
135 | 131 |
|
136 | | -# --------------------------------------------------------------------------- |
137 | | -# Fixtures |
138 | | -# --------------------------------------------------------------------------- |
139 | | - |
140 | | - |
141 | 132 | @pytest.fixture |
142 | 133 | def alice() -> User: |
143 | 134 | return User(id="U1", name="Alice", display_name="Alice A") |
@@ -177,11 +168,6 @@ def mock_backend(alice: User, general: Channel, sample_messages: List[Message]) |
177 | 168 | ) |
178 | 169 |
|
179 | 170 |
|
180 | | -# --------------------------------------------------------------------------- |
181 | | -# Server builder tests |
182 | | -# --------------------------------------------------------------------------- |
183 | | - |
184 | | - |
185 | 171 | class TestBuildMcpServer: |
186 | 172 | """Tests for build_mcp_server via the Client (avoids accessing internals).""" |
187 | 173 |
|
@@ -230,11 +216,6 @@ async def test_capability_gating(self) -> None: |
230 | 216 | assert "read_channel_history" in tool_names |
231 | 217 |
|
232 | 218 |
|
233 | | -# --------------------------------------------------------------------------- |
234 | | -# MCP Client integration tests |
235 | | -# --------------------------------------------------------------------------- |
236 | | - |
237 | | - |
238 | 219 | class TestMcpClientIntegration: |
239 | 220 | """Test tools via FastMCP Client (in-process, no subprocess).""" |
240 | 221 |
|
|
0 commit comments