Major changes: - Add comprehensive documentation to all modules with detailed docstrings - Remove unused THINKING_MODEL config (use single GEMINI_MODEL with thinking_mode param) - Remove list_models functionality (simplified to single model configuration) - Rename DEFAULT_MODEL to GEMINI_MODEL for clarity - Remove unused python-dotenv dependency - Fix missing pydantic in setup.py dependencies Documentation improvements: - Document security measures in file_utils.py (path validation, sandboxing) - Add detailed comments to critical logic sections - Document tool creation process in BaseTool - Explain configuration values and their impact - Add comprehensive function-level documentation Code quality: - Apply black formatting to all files - Fix all ruff linting issues - Update tests to match refactored code - All 63 tests passing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
42 lines
1.1 KiB
Python
42 lines
1.1 KiB
Python
"""
|
|
Tests for configuration
|
|
"""
|
|
|
|
from config import (
|
|
GEMINI_MODEL,
|
|
MAX_CONTEXT_TOKENS,
|
|
TEMPERATURE_ANALYTICAL,
|
|
TEMPERATURE_BALANCED,
|
|
TEMPERATURE_CREATIVE,
|
|
__author__,
|
|
__updated__,
|
|
__version__,
|
|
)
|
|
|
|
|
|
class TestConfig:
|
|
"""Test configuration values"""
|
|
|
|
def test_version_info(self):
|
|
"""Test version information exists and has correct format"""
|
|
# Check version format (e.g., "2.4.1")
|
|
assert isinstance(__version__, str)
|
|
assert len(__version__.split(".")) == 3 # Major.Minor.Patch
|
|
|
|
# Check author
|
|
assert __author__ == "Fahad Gilani"
|
|
|
|
# Check updated date exists (don't assert on specific format/value)
|
|
assert isinstance(__updated__, str)
|
|
|
|
def test_model_config(self):
|
|
"""Test model configuration"""
|
|
assert GEMINI_MODEL == "gemini-2.5-pro-preview-06-05"
|
|
assert MAX_CONTEXT_TOKENS == 1_000_000
|
|
|
|
def test_temperature_defaults(self):
|
|
"""Test temperature constants"""
|
|
assert TEMPERATURE_ANALYTICAL == 0.2
|
|
assert TEMPERATURE_BALANCED == 0.5
|
|
assert TEMPERATURE_CREATIVE == 0.7
|