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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user