Skip to content

Commit 50d3e34

Browse files
committed
fix(connectors): remove unused imports and fix Black formatting in connector tests
1 parent 5ad6f79 commit 50d3e34

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

tests/unit/connectors/test_agent_mcps_router.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@
1717
from __future__ import annotations
1818

1919
import json
20-
import types
2120
from dataclasses import dataclass, field
2221
from pathlib import Path
2322
from typing import List, Optional
2423
from unittest.mock import MagicMock
2524

2625
import 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

tests/unit/connectors/test_disconnect_clears_grants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
from __future__ import annotations
1717

18-
import os
1918
from typing import Any, Dict
2019
from unittest.mock import patch
2120

tests/unit/connectors/test_enable_disable.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
from __future__ import annotations
1717

18-
import json
1918
import os
2019
import stat
2120
from typing import Dict

0 commit comments

Comments
 (0)