[Arch] email_service.py, notifiers/webhook.py, middleware.py are essentially untested #66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium | Category: Testing
email_service.py— 37% coverage, no dedicated test file.notifiers/webhook.py— no test file at all (unlike mqtt/ntfy which both have one).middleware.py(AccessLogMiddleware) — 0% coverage.Recommendation: Add
test_email_service.py(mock SMTP),test_webhook_notifier.py(mirror thetest_mqtt.py/test_ntfy_notifier.pypattern withrespx), andtest_middleware.py.Full detail:
docs/architecture-review.md§ C, Finding "email_service.py, notifiers/webhook.py, and middleware.py..."Fixed on branch
architecture-rework, commitca4161e: addedtests/test_email_service.py,tests/test_webhook_notifier.py,tests/test_middleware.py. All three modules now at 100% line coverage (up from 37%/64%/0%). Full suite: 276 passed.