mirror of
https://github.com/hanzoai/stack.git
synced 2026-11-19 03:06:57 +00:00
219 lines
13 KiB
Plaintext
219 lines
13 KiB
Plaintext
2025-07-29 16:00:45 [warning ] InfinityDB not available on Darwin arm64, using mock implementation
|
|
============================= test session starts ==============================
|
|
collecting ... Testing Hanzo Agents Web3 Integration
|
|
==================================================
|
|
✗ Wallet test failed: No module named 'eth_account'
|
|
|
|
✓ TEE module imported
|
|
|
|
✗ TEE test failed: MockTEEExecutor.execute() missing 1 required positional argument: 'config'
|
|
|
|
✗ Marketplace test failed: No module named 'eth_account'
|
|
|
|
✗ Web3Agent test failed: No module named 'eth_account'
|
|
|
|
==================================================
|
|
Basic components are working!
|
|
|
|
Note: Full agent functionality requires additional dependencies:
|
|
- structlog (for logging)
|
|
- prometheus_client (for metrics)
|
|
- web3 (for real blockchain interaction)
|
|
- torch/transformers (for local AI compute)
|
|
|
|
==================================================
|
|
Testing MCP Integration
|
|
✓ SwarmTool imports successfully
|
|
✓ SwarmTool uses hanzo-agents SDK
|
|
|
|
✅ Integration test complete!
|
|
collected 379 items
|
|
|
|
tests/manual/test_filters_manual.py::test_filters Test directory: /var/folders/xh/_fpw0c6d7rs1sn8nwx93t7gw0000gn/T/tmp362bl2fh
|
|
|
|
Test 1: Size filter (min_size=5KB)
|
|
Found 1 files:
|
|
- large.txt (10000 bytes)
|
|
|
|
Test 2: Time filter (modified_after='12 hours ago')
|
|
Found 2 files:
|
|
- large.txt (modified: 2025-07-29T16:00:51.189719)
|
|
- small.txt (modified: 2025-07-29T16:00:51.189579)
|
|
PASSED
|
|
tests/manual/test_size_parsing_manual.py::test_parse_size '5KB' -> 5120 bytes (expected: 5120, match: True)
|
|
'10KB' -> 10240 bytes (expected: 10240, match: True)
|
|
'1MB' -> 1048576 bytes (expected: 1048576, match: True)
|
|
'100' -> 100 bytes (expected: 100, match: True)
|
|
'5K' -> 5120 bytes (expected: 5120, match: True)
|
|
PASSED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_initialization PASSED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_initialization_with_params PASSED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_model_and_api_key_override PASSED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_call_no_prompt PASSED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_call_with_litellm_error SKIPPED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_call_with_valid_prompt_string PASSED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_call_with_multiple_prompts PASSED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_call_with_empty_prompt_list PASSED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_call_with_invalid_type PASSED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_execute_agent_with_tools_simple SKIPPED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_execute_agent_with_tools_tool_calls SKIPPED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_execute_multiple_agents SKIPPED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_execute_multiple_agents_single_prompt SKIPPED
|
|
tests/test_agent/test_agent_tool.py::TestAgentTool::test_execute_multiple_agents_with_exceptions SKIPPED
|
|
tests/test_agent/test_litellm_providers.py::test_convert_echo_tool_to_openai_functions PASSED
|
|
tests/test_agent/test_litellm_providers.py::test_litellm_openai_provider OpenAI response: Hello! I am just a computer program, so I don't have feelings, but I'm here to help you with anything you need. How can I assist you today?
|
|
PASSED
|
|
tests/test_agent/test_litellm_providers.py::test_litellm_anthropic_provider SKIPPED
|
|
tests/test_agent/test_model_capabilities.py::TestModelCapabilities::test_supports_parallel_function_calling PASSED
|
|
tests/test_agent/test_prompt.py::TestPrompt::test_get_allowed_agent_tools PASSED
|
|
tests/test_agent/test_prompt.py::TestPrompt::test_get_system_prompt PASSED
|
|
tests/test_agent/test_prompt.py::TestPrompt::test_get_default_model PASSED
|
|
tests/test_agent/test_prompt.py::TestPrompt::test_get_model_parameters PASSED
|
|
tests/test_agent/test_tool_adapter.py::TestToolAdapter::test_convert_tools_to_openai_functions PASSED
|
|
tests/test_agent/test_tool_adapter.py::TestToolAdapter::test_convert_tool_parameters_complete PASSED
|
|
tests/test_agent/test_tool_adapter.py::TestToolAdapter::test_convert_tool_parameters_minimal PASSED
|
|
tests/test_async_support.py::test_sync PASSED
|
|
tests/test_async_support.py::test_async_simple PASSED
|
|
tests/test_async_support.py::test_async_manual PASSED
|
|
tests/test_batch_tool_edge_cases.py::TestBatchToolEdgeCases::test_empty_invocations_error PASSED
|
|
tests/test_batch_tool_edge_cases.py::TestBatchToolEdgeCases::test_invalid_tool_name PASSED
|
|
tests/test_batch_tool_edge_cases.py::TestBatchToolEdgeCases::test_tool_execution_error PASSED
|
|
tests/test_batch_tool_edge_cases.py::TestBatchToolEdgeCases::test_mixed_success_and_failure PASSED
|
|
tests/test_batch_tool_edge_cases.py::TestBatchToolEdgeCases::test_large_batch_pagination PASSED
|
|
tests/test_batch_tool_edge_cases.py::TestBatchToolEdgeCases::test_concurrent_execution_limit PASSED
|
|
tests/test_batch_tool_edge_cases.py::TestBatchToolEdgeCases::test_invalid_input_types PASSED
|
|
tests/test_batch_tool_edge_cases.py::TestBatchToolEdgeCases::test_tool_name_normalization PASSED
|
|
tests/test_cli.py::TestCLI::test_main_server_run PASSED
|
|
tests/test_cli.py::TestCLI::test_main_with_install PASSED
|
|
tests/test_cli.py::TestCLI::test_main_without_allowed_paths PASSED
|
|
tests/test_cli.py::TestCLI::test_main_with_disable_write_tools PASSED
|
|
tests/test_cli.py::TestCLI::test_main_with_disable_search_tools PASSED
|
|
tests/test_cli.py::TestInstallClaudeDesktopConfig::test_install_config_macos PASSED
|
|
tests/test_cli.py::TestInstallClaudeDesktopConfig::test_install_config_windows PASSED
|
|
tests/test_cli.py::TestInstallClaudeDesktopConfig::test_install_config_merge_existing PASSED
|
|
tests/test_cli.py::TestInstallClaudeDesktopConfig::test_install_config_default_paths PASSED
|
|
tests/test_cli.py::TestInstallClaudeDesktopConfig::test_install_config_with_disable_write_tools PASSED
|
|
tests/test_cli.py::TestInstallClaudeDesktopConfig::test_install_config_with_disable_search_tools PASSED
|
|
tests/test_cli.py::TestInstallClaudeDesktopConfig::test_install_config_with_both_flags PASSED
|
|
tests/test_cli_agents.py::TestClaudeCLI::test_initialization PASSED
|
|
tests/test_cli_agents.py::TestClaudeCLI::test_cli_args PASSED
|
|
tests/test_cli_agents.py::TestClaudeCLI::test_not_installed PASSED
|
|
tests/test_cli_agents.py::TestClaudeCLI::test_no_api_key PASSED
|
|
tests/test_cli_agents.py::TestCodexCLI::test_initialization PASSED
|
|
tests/test_cli_agents.py::TestCodexCLI::test_cli_args PASSED
|
|
tests/test_cli_agents.py::TestGeminiCLI::test_initialization PASSED
|
|
tests/test_cli_agents.py::TestGeminiCLI::test_cli_args PASSED
|
|
tests/test_cli_agents.py::TestGrokCLI::test_initialization PASSED
|
|
tests/test_cli_agents.py::TestGrokCLI::test_cli_args PASSED
|
|
tests/test_cli_agents.py::TestCLIAgentIntegration::test_swarm_with_cli_agents PASSED
|
|
tests/test_common/test_hidden_files.py::TestHiddenFilePermissions::test_dotfile_exclusion_behavior PASSED
|
|
tests/test_common/test_hidden_files.py::TestHiddenFilePermissions::test_various_hidden_files PASSED
|
|
tests/test_common/test_hidden_files.py::TestHiddenFilePermissions::test_path_component_matching PASSED
|
|
tests/test_common/test_hidden_files.py::TestHiddenFilePermissions::test_wildcard_patterns PASSED
|
|
tests/test_common/test_hidden_files.py::TestHiddenFilePermissions::test_real_world_project_paths PASSED
|
|
tests/test_common/test_permissions.py::TestPermissionManager::test_add_allowed_path PASSED
|
|
tests/test_common/test_permissions.py::TestPermissionManager::test_remove_allowed_path PASSED
|
|
tests/test_common/test_permissions.py::TestPermissionManager::test_exclude_path PASSED
|
|
tests/test_common/test_permissions.py::TestPermissionManager::test_add_exclusion_pattern PASSED
|
|
tests/test_common/test_permissions.py::TestPermissionManager::test_is_path_allowed_with_allowed_path PASSED
|
|
tests/test_common/test_permissions.py::TestPermissionManager::test_is_path_allowed_with_disallowed_path PASSED
|
|
tests/test_common/test_permissions.py::TestPermissionManager::test_is_path_allowed_with_excluded_path PASSED
|
|
tests/test_common/test_permissions.py::TestPermissionManager::test_is_path_allowed_with_excluded_pattern PASSED
|
|
tests/test_common/test_permissions.py::TestPermissionManager::test_to_json PASSED
|
|
tests/test_common/test_permissions.py::TestPermissionManager::test_from_json PASSED
|
|
tests/test_common/test_permissions.py::TestPermissibleOperation::test_permissible_operation_with_allowed_path PASSED
|
|
tests/test_common/test_permissions.py::TestPermissibleOperation::test_permissible_operation_with_custom_path_fn PASSED
|
|
tests/test_common/test_permissions.py::TestPermissibleOperation::test_permissible_operation_with_invalid_path PASSED
|
|
tests/test_failure_cases.py::test_no_api_key Test: No API Key
|
|
----------------------------------------
|
|
✓ Correctly detected missing API key
|
|
Swarm would use model but agent calls would fail
|
|
|
|
PASSED
|
|
tests/test_failure_cases.py::test_invalid_task_format Test: Invalid Task Formats
|
|
----------------------------------------
|
|
✓ None value: Correctly identified as invalid
|
|
✓ Plain string instead of dict: Correctly identified as invalid
|
|
✓ Empty list: Correctly identified as invalid
|
|
✓ Empty dict: Correctly identified as invalid
|
|
✓ Missing file_path: Correctly identified as invalid
|
|
✓ Missing instructions: Correctly identified as invalid
|
|
✓ Empty file_path: Correctly identified as invalid
|
|
✓ Empty instructions: Correctly identified as invalid
|
|
|
|
PASSED
|
|
tests/test_failure_cases.py::test_permission_denied Test: Permission Denied
|
|
----------------------------------------
|
|
✓ Would block access to: /etc/passwd
|
|
✓ Would block access to: /root/.ssh/id_rsa
|
|
✓ Would block access to: ~/.aws/credentials
|
|
✓ Would block access to: /System/Library/
|
|
✓ Would block access to: C:\Windows\System32\
|
|
|
|
PASSED
|
|
tests/test_failure_cases.py::test_concurrent_limit Test: Concurrent Execution Limits
|
|
----------------------------------------
|
|
Total tasks: 10
|
|
Max concurrent: 3
|
|
Batch 1: Tasks [0, 1, 2]
|
|
Batch 2: Tasks [3, 4, 5]
|
|
Batch 3: Tasks [6, 7, 8]
|
|
Batch 4: Tasks [9]
|
|
✓ Correctly split into 4 batches
|
|
|
|
PASSED
|
|
tests/test_failure_cases.py::test_large_response_handling Test: Large Response Handling
|
|
----------------------------------------
|
|
✗ Response fits within limit
|
|
|
|
PASSED
|
|
tests/test_failure_cases.py::test_error_recovery Test: Error Recovery
|
|
----------------------------------------
|
|
✓ Network timeout: Would retry with exponential backoff
|
|
✓ Model overloaded: Would fallback to alternative model
|
|
✓ Invalid response format: Would request clarification
|
|
✓ File not found: Would report error gracefully
|
|
✓ Permission denied: Would skip file and continue
|
|
|
|
PASSED
|
|
tests/test_failure_cases.py::test_edge_cases Test: Edge Cases
|
|
----------------------------------------
|
|
✓ Empty file: Should handle gracefully
|
|
✓ Binary file: Should detect and skip
|
|
✓ Symbolic link: Should resolve or skip
|
|
✓ File with no write permission: Should report error
|
|
✓ Very long file path: Should handle up to OS limit
|
|
✓ Unicode in file names: Should support UTF-8
|
|
✓ Concurrent file access: Should use file locking
|
|
|
|
PASSED
|
|
tests/test_filesystem/test_ast_simple.py::test_simple PASSED
|
|
tests/test_filesystem/test_ast_simple.py::test_async_simple PASSED
|
|
tests/test_filesystem/test_ast_tool.py::test_symbols_simple PASSED
|
|
tests/test_filesystem/test_ast_tool.py::test_symbols_import PASSED
|
|
tests/test_filesystem/test_fs_tools.py::TestRefactoredFileTools::test_read_files_single_allowed PASSED
|
|
tests/test_filesystem/test_fs_tools.py::TestRefactoredFileTools::test_write_file PASSED
|
|
tests/test_filesystem/test_fs_tools.py::TestRefactoredFileTools::test_edit_file PASSED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_ffind_availability
|
|
ffind available: True
|
|
PASSED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_find_all_python_files PASSED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_find_with_size_filter PASSED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_find_directories PASSED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_find_with_pattern_in_content PASSED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_pagination PASSED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_performance_comparison
|
|
Performance comparison:
|
|
Python implementation: 0.008s
|
|
ffind implementation: 0.009s
|
|
Speedup: 0.9x
|
|
PASSED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_fuzzy_search SKIPPED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_case_insensitive_search PASSED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_statistics PASSED
|
|
tests/test_find_tool_ffind.py::TestFindToolFFind::test_gitignore_respect PASSED
|
|
tests/test_find_tool_integration.py::test_find_tool_direct_usage FAILED
|
|
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
============= 1 failed, 96 passed, 8 skipped, 6 warnings in 21.03s =============
|