markitect-main/tddai
tegwick 6713768ea6 fix: Resolve failing tests after CLI and error handling refactoring
Fix all test failures introduced by recent architectural changes:

• Issue Creator Tests:
  - Fixed mock API responses to include required fields (created_at, updated_at, html_url)
  - Added input validation for empty titles back to issue creator
  - Updated test expectations to match new error handling patterns
  - Created helper function for complete mock responses

• Issue Fetcher Test:
  - Updated mock target from tddai.issue_fetcher.subprocess to gitea.http_client.subprocess
  - Fixed test assertions to match new error handling with specific exception chaining
  - Test now properly validates API error translation

• Makefile Integration Test:
  - Implemented lazy initialization in tddai_cli.py to prevent import-time configuration errors
  - Replaced eager CLI framework initialization with _get_cli() lazy pattern
  - Preserves normal CLI functionality while fixing test environment compatibility

• Result: All 171 tests now pass (169 passed, 2 skipped)
• Maintains backward compatibility of CLI interface
• Validates that refactored error handling works correctly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-26 17:15:36 +02:00
..
__init__.py feat: Implement comprehensive project management system with issue lifecycle support 2025-09-24 23:51:29 +02:00
config.py feat: Enhance tddai configuration with auto-loading .env files 2025-09-24 22:53:27 +02:00
coverage_analyzer.py refactor: Standardize error handling patterns across codebase 2025-09-26 16:35:13 +02:00
exceptions.py feat: implement tddai Python library for TDD workspace management 2025-09-22 02:04:19 +02:00
issue_creator.py fix: Resolve failing tests after CLI and error handling refactoring 2025-09-26 17:15:36 +02:00
issue_fetcher.py refactor: Standardize error handling patterns across codebase 2025-09-26 16:35:13 +02:00
issue_writer.py fix: Resolve label assignment issue using dedicated Gitea API endpoint 2025-09-25 00:31:37 +02:00
project_manager.py refactor: Standardize error handling patterns across codebase 2025-09-26 16:35:13 +02:00
test_generator.py feat: implement tddai Python library for TDD workspace management 2025-09-22 02:04:19 +02:00
workspace.py fix: Resolve TDD infrastructure test failures and API mismatches 2025-09-23 04:46:22 +02:00