From a5920937cb6e26e43579047d1fdb518be273d4d5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 29 Mar 2026 01:04:55 +0000 Subject: [PATCH] docs: update TODO.md with gmail_service test coverage entry Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/250e0731-baa3-40c5-bc19-a4102475dac2 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- docs/TODO.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/TODO.md b/docs/TODO.md index 81781a7..b212c02 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -127,6 +127,7 @@ Comprehensive task breakdown for repository improvements and production readines - [x] Write unit tests for authentication (22 tests covering register, login, Google OAuth, authorize-url, and helper functions) - [x] Write unit tests for mail account endpoints (30 tests covering CRUD, toggle, pull-now, test connection, auto-detect, processing runs/logs) - [x] Write unit tests for provider endpoints (23 tests covering presets, Gmail credential CRUD, import labels, authorize URL, debug email, OAuth callback) +- [x] **Expanded `gmail_service.py` test coverage**: 10 new tests covering `inject_email` HttpError branch, `get_or_create_label` (existing/create/HttpError/generic-error), `inject_debug_email` full flow, `get_refreshed_token` (changed/unchanged), and `service` property lazy initialization — 24 total tests in `test_gmail_service.py` - [ ] Write unit tests for mail processing - [ ] Write integration tests for API endpoints