"""Phase 10 site 4: _should_cache_gemini_result helper.""" import sys sys.path.insert(0, ".") def test_phase10_site4_should_cache_gemini_result_exists(): import src.ai_client assert hasattr(src.ai_client, "_should_cache_gemini_result"), \ "_should_cache_gemini_result helper missing" def test_phase10_site4_should_cache_gemini_result_returns_result(): import src.ai_client import inspect fn = src.ai_client._should_cache_gemini_result sig = inspect.signature(fn) assert "Result" in str(sig.return_annotation), \ f"_should_cache_gemini_result return must be Result, got {sig.return_annotation}"