test(coverage): add celery_worker coverage and remove dead config_validator.py

- Rewrite tests/test_celery_worker.py to mock check_credentials.apply_async
  at import time, enabling all 35 statements to be covered without Redis
- Add tests for conditional beat schedule entries (IMAP, Uptime Kuma)
- Delete app/utils/config_validator.py — dead code shadowed by the
  config_validator/ package directory (Python gives packages precedence)
- Remove both files from coverage omit in pyproject.toml
- celery_worker.py now at 100% coverage (was 0%)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-25 21:08:24 +00:00
parent 45e09a0ded
commit ffa0e1eb7b
4 changed files with 136 additions and 102 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
"""
Tests for app/utils/config_validator.py
Tests for app/utils/config_validator/ package
This module tests the config_validator re-export module.
This module tests the config_validator package re-exports from __init__.py.
"""
import pytest