Skip to content

Commit 0e0ba15

Browse files
authored
Merge branch 'develop' into feature/standardize-exchange-inputs
2 parents f7a3022 + 074ba78 commit 0e0ba15

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

openbb_platform/extensions/mcp_server/openbb_mcp_server/app/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ def system_prompt_resource() -> str:
467467

468468
@mcp.tool(tags={"admin"})
469469
def available_categories() -> list[CategoryInfo]:
470+
"""List available tool categories and subcategories with tool counts."""
470471
categories = tool_registry.get_categories()
471472
return [
472473
CategoryInfo(

openbb_platform/extensions/mcp_server/tests/utils/test_app_import.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def app_file(self, tmp_path: Path):
183183
app_file.write_text(app_content)
184184
return app_file
185185

186+
@pytest.mark.skipif(sys.platform == "win32", reason="Unix-specific test")
186187
def test_unix_absolute_path(self, app_file: Path):
187188
"""Test Unix-style absolute paths (e.g., /home/user/app.py)."""
188189
app = import_app(str(app_file), "app", False)
@@ -282,14 +283,14 @@ def test_custom_app_name(self, tmp_path: Path):
282283

283284
@pytest.mark.skipif(sys.platform != "win32", reason="Windows-specific test")
284285
def test_windows_absolute_path(self, app_file: Path):
285-
"""Test Windows-style absolute paths (e.g., C:\\Users\\app.py)."""
286+
"""Test Windows-style absolute paths"""
286287
# On Windows, tmp_path will have a drive letter (e.g., C:\...)
287288
app = import_app(str(app_file), "app", False)
288289
assert isinstance(app, FastAPI)
289290

290291
@pytest.mark.skipif(sys.platform != "win32", reason="Windows-specific test")
291292
def test_windows_path_with_colon_notation(self, app_file: Path):
292-
"""Test Windows path with colon notation (e.g., C:\\path\\app.py:myapp)."""
293+
"""Test Windows path with colon notation."""
293294
# Windows path with colon notation: C:\path\app.py:app
294295
app = import_app(f"{app_file}:app", "app", False)
295296
assert isinstance(app, FastAPI)
@@ -298,6 +299,7 @@ def test_windows_path_with_colon_notation(self, app_file: Path):
298299
class TestPathDetectionHelpers:
299300
"""Test path detection logic for cross-platform compatibility."""
300301

302+
@pytest.mark.skipif(sys.platform == "win32", reason="Unix-specific test")
301303
def test_is_absolute_path_detection_unix(self):
302304
"""Test absolute path detection for Unix paths."""
303305
# Unix absolute paths

0 commit comments

Comments
 (0)