We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nihalxkumar/arch-linux-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_storage.py•814 B
# SPDX-License-Identifier: GPL-3.0-only OR MIT
"""Tests for unified storage analysis functionality."""
import pytest
from arch_ops_server.system import analyze_storage
async def test_analyze_storage_disk_usage():
"""Test disk usage analysis."""
result = await analyze_storage(action="disk_usage")
assert "disk_usage" in result or "error" in result
@pytest.mark.skipif(not True, reason="Arch Linux only")
async def test_analyze_storage_cache_stats():
"""Test pacman cache stats analysis."""
result = await analyze_storage(action="cache_stats")
assert "cache_stats" in result or "error" in result
async def test_analyze_storage_invalid_action():
"""Test error handling for invalid action."""
result = await analyze_storage(action="invalid_action")
assert "error" in result