test: remediate audit findings for task log viewer, report card and logger tests

This commit is contained in:
2026-03-03 21:01:24 +03:00
parent ce3955ed2e
commit fa380ff9a5
11 changed files with 244 additions and 61 deletions

View File

@@ -1,3 +1,11 @@
# [DEF:tests.test_logger:Module]
# @TIER: STANDARD
# @SEMANTICS: logging, tests, belief_state
# @PURPOSE: Unit tests for the custom logger formatters and configuration context manager.
# @LAYER: Logging (Tests)
# @RELATION: VERIFIES -> src/core/logger.py
# @INVARIANT: All required log statements must correctly check the threshold.
import pytest
from src.core.logger import (
belief_scope,
@@ -210,4 +218,5 @@ def test_enable_belief_state_flag(caplog):
enable_belief_state=True
)
configure_logger(config)
# [/DEF:test_enable_belief_state_flag:Function]
# [/DEF:test_enable_belief_state_flag:Function]
# [/DEF:tests.test_logger:Module]