1717from __future__ import annotations
1818
1919import json
20- import types
2120from dataclasses import dataclass , field
2221from pathlib import Path
2322from typing import List , Optional
2423from unittest .mock import MagicMock
2524
2625import pytest
2726
28-
2927# ---------------------------------------------------------------------------
3028# Minimal AgentRegistration stub so the test does not import the real module
3129# ---------------------------------------------------------------------------
@@ -187,7 +185,7 @@ def test_sort_enabled_first_then_alphabetical(self, app_client, tmp_path):
187185 "mcpServers" : {
188186 "zebra" : {"command" : "z" , "args" : [], "disabled" : False },
189187 "alpha" : {"command" : "a" , "args" : [], "disabled" : True },
190- "beta" : {"command" : "b" , "args" : [], "disabled" : False },
188+ "beta" : {"command" : "b" , "args" : [], "disabled" : False },
191189 "omega" : {"command" : "o" , "args" : [], "disabled" : True },
192190 }
193191 },
@@ -202,9 +200,7 @@ def test_sort_enabled_first_then_alphabetical(self, app_client, tmp_path):
202200 # Enabled (beta, zebra) alphabetical first, then disabled (alpha, omega) alphabetical.
203201 assert names == ["beta" , "zebra" , "alpha" , "omega" ]
204202
205- def test_malformed_json_skipped_other_agents_returned (
206- self , app_client , tmp_path
207- ):
203+ def test_malformed_json_skipped_other_agents_returned (self , app_client , tmp_path ):
208204 """Bad JSON for one agent does not prevent other agents from appearing."""
209205 client , app = app_client
210206
0 commit comments