Commit Graph

2 Commits

Author SHA1 Message Date
2dfe5130a3 feat: add comprehensive Gitea integration tests
Added comprehensive test suite for Gitea API integration covering:
- GiteaConfig: Configuration and API URL generation (4 tests)
- IssuesClient: Full issue CRUD operations, labels, milestones (18 tests)
- MilestonesClient: Milestone creation and management (3 tests)
- LabelsClient: Label operations (2 tests)
- GiteaClient: Main client facade (2 tests)
- Error Handling: Error propagation and handling (3 tests)
- Integration Patterns: API consistency and compatibility (3 tests)

Total: 35 integration tests

Status: Currently skipped - tests need updating for issue-facade backend
architecture pattern. These tests were written for a different Gitea client
structure and serve as specification for enhanced API coverage.

Related: test_gitea_backend.py (20 passing tests for current backend)
2025-12-17 15:40:07 +01:00
34a8bc7d4c fix: resolve issue-facade ID mapping bugs and enhance functionality
- Fix Sentinel bug in list command where Click set search params to Sentinel.UNSET
- Fix version command by adding explicit version and package_name parameters
- Fix test isolation by correcting mock patch targets and datetime objects
- Fix critical ID mapping bug: use issue.number consistently instead of mixing with issue.backend_id
- Update all comment operations to use issue numbers instead of internal IDs
- Ensure issue-facade uses upstream issue numbers directly without local ID confusion
- Add comprehensive test coverage with 20 passing tests
- Verify core functionality: list, show, close, version, backend management all working
- Successfully close issue #166 with proper comment handling

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 10:48:31 +01:00