markitect-main/tests
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
..
test_example.py feat: implement tddai Python library for TDD workspace management 2025-09-22 02:04:19 +02:00
test_issue_1_database_initialization.py test: Add comprehensive test suite for Issue #1 database functionality 2025-09-23 04:29:35 +02:00
test_issue_2_file_ingestion.py feat: Implement comprehensive IssueCreator system and create CLI roadmap issues 2025-09-24 23:36:07 +02:00
test_issue_2_get_modify_commands.py test: Add comprehensive tests for Issue #2 get and modify commands 2025-09-25 03:08:18 +02:00
test_issue_11_complete.py feat: implement tddai Python library for TDD workspace management 2025-09-22 02:04:19 +02:00
test_issue_11_feature.py feat: implement tddai Python library for TDD workspace management 2025-09-22 02:04:19 +02:00
test_issue_11_workflow_integration.py fix: Resolve TDD infrastructure test failures and API mismatches 2025-09-23 04:46:22 +02:00
test_issue_11_workspace_creation.py fix: Resolve failing tests after CLI and error handling refactoring 2025-09-26 17:15:36 +02:00
test_issue_11_workspace_creation_validation.py fix: Resolve TDD infrastructure test failures and API mismatches 2025-09-23 04:46:22 +02:00
test_issue_13_cache_commands.py feat: Complete Issue #13 - Cache Management CLI Commands MAJOR MILESTONE 2025-09-25 23:03:03 +02:00
test_issue_13_cache_info_command.py fix: Achieve 100% green test state - Quality milestone completed 2025-09-26 02:17:04 +02:00
test_issue_14_output_formatting.py feat: Complete Issue #14 - Database Query CLI Interface MAJOR MILESTONE 2025-09-25 03:30:10 +02:00
test_issue_14_query_commands.py feat: Complete Issue #14 - Database Query CLI Interface MAJOR MILESTONE 2025-09-25 03:30:10 +02:00
test_issue_15_ast_commands.py fix: Achieve 100% green test state - Quality milestone completed 2025-09-26 02:17:04 +02:00
test_issue_creator.py fix: Resolve failing tests after CLI and error handling refactoring 2025-09-26 17:15:36 +02:00
test_issue_integration.py fix: Achieve 100% green test state - Quality milestone completed 2025-09-26 02:17:04 +02:00
test_issue_writer.py feat: Implement comprehensive IssueCreator system and create CLI roadmap issues 2025-09-24 23:36:07 +02:00
test_parser.py chore: gitignore and repo cleanup 2025-09-16 03:04:18 +02:00