- Fix patch path for SimpleAIClient (deep_analyzer not semantic_engine)
- Remove config parameter from SRTProcessor initialization
- Add proper assertions for cache enabled/disabled states
- Import Mock from unittest.mock
- Remove duplicate test functions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add comprehensive test suite in test_semantic_robustness.py
- TestLLMFailureFallback: LLM调用失败自动降级 (ROBUST-01)
- TestNonRecoverableErrorDetection: 不可恢复错误检测
- TestRecoverableErrorDetection: 可恢复错误检测
- TestRetryMechanism: 重试机制测试
- TestFallbackToRuleBased: 降级到规则分段 (ROBUST-03)
- TestLoggingBehavior: 日志记录行为 (ROBUST-04)
- TestParseFailureRetry: 解析失败重试 (ROBUST-02)
- TestExtractJSON: JSON提取功能
- Update conftest.py with Phase 14 fixtures:
- Mock AI clients for different failure scenarios
- Long text samples for chunking tests (COST-01)
- Cache-related fixtures (COST-02)
- Long subtitle segments for testing
- Add TestSemanticSegmentationToggle to test_srt_processor.py (COST-03):
- Test enabling/disabling semantic segmentation
- Test cache enable/disable functionality
- Test configuration switches
All tests follow TDD RED state - failing tests for future implementation
- Add SRTInput/SRTOutput schemas to pipeline
- Create SRTProcessor following BaseProcessor pattern
- Generate Markdown with YAML frontmatter
- Support metadata extraction and formatting
- Handle missing metadata gracefully
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Test obvious homophone error correction
- Test contextual error correction
- Test no overcorrection on correct text
- Test AI unavailable fallback
- Test batch processing for long text
- Test empty text handling
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Test merging short segments into paragraphs
- Test segmentation on topic change (time gap)
- Test max paragraph length constraint
- Test empty segments handling
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Test standard SRT format parsing
- Test special character handling
- Test error handling for invalid/empty content
- Test file parsing functionality
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>