fix: address second round of review feedback

- Remove dead monkeypatch in test_stdio_calls_get_stdio_mcp
- Add _reload_config() teardown to single_user_env fixture
- Tighten AVAILABLE_APPS type to Callable[[FastMCP], None]

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Chris Coutinho
2026-04-07 23:26:46 +02:00
co-authored by Claude Opus 4.6
parent e9c46a04a0
commit 1af85bc05e
3 changed files with 6 additions and 6 deletions
-4
View File
@@ -318,10 +318,6 @@ def test_stdio_calls_get_stdio_mcp(runner, clean_env, monkeypatch):
called_with["enabled_apps"] = enabled_apps
return FakeMcp()
monkeypatch.setattr(
"nextcloud_mcp_server.cli.get_stdio_mcp", mock_get_stdio_mcp, raising=False
)
# The lazy import means we need to patch at the module level it imports from
monkeypatch.setattr("nextcloud_mcp_server.stdio.get_stdio_mcp", mock_get_stdio_mcp)
result = runner.invoke(run, ["--transport", "stdio"])