fix: commit semantic repair changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# [DEF:tests.test_logger:Module]
|
||||
# [DEF:TestLogger:Module]
|
||||
# @COMPLEXITY: 3
|
||||
# @SEMANTICS: logging, tests, belief_state
|
||||
# @PURPOSE: Unit tests for the custom logger formatters and configuration context manager.
|
||||
@@ -18,6 +18,7 @@ from src.core.config_models import LoggingConfig
|
||||
|
||||
|
||||
# [DEF:test_belief_scope_logs_entry_action_exit_at_debug:Function]
|
||||
# @RELATION: BINDS_TO -> TestLogger
|
||||
# @PURPOSE: Test that belief_scope generates [ID][Entry], [ID][Action], and [ID][Exit] logs at DEBUG level.
|
||||
# @PRE: belief_scope is available. caplog fixture is used. Logger configured to DEBUG.
|
||||
# @POST: Logs are verified to contain Entry, Action, and Exit tags at DEBUG level.
|
||||
@@ -50,6 +51,7 @@ def test_belief_scope_logs_entry_action_exit_at_debug(caplog):
|
||||
|
||||
|
||||
# [DEF:test_belief_scope_error_handling:Function]
|
||||
# @RELATION: BINDS_TO -> TestLogger
|
||||
# @PURPOSE: Test that belief_scope logs Coherence:Failed on exception.
|
||||
# @PRE: belief_scope is available. caplog fixture is used. Logger configured to DEBUG.
|
||||
# @POST: Logs are verified to contain Coherence:Failed tag.
|
||||
@@ -82,6 +84,7 @@ def test_belief_scope_error_handling(caplog):
|
||||
|
||||
|
||||
# [DEF:test_belief_scope_success_coherence:Function]
|
||||
# @RELATION: BINDS_TO -> TestLogger
|
||||
# @PURPOSE: Test that belief_scope logs Coherence:OK on success.
|
||||
# @PRE: belief_scope is available. caplog fixture is used. Logger configured to DEBUG.
|
||||
# @POST: Logs are verified to contain Coherence:OK tag.
|
||||
@@ -111,6 +114,7 @@ def test_belief_scope_success_coherence(caplog):
|
||||
|
||||
|
||||
# [DEF:test_belief_scope_not_visible_at_info:Function]
|
||||
# @RELATION: BINDS_TO -> TestLogger
|
||||
# @PURPOSE: Test that belief_scope Entry/Exit/Coherence logs are NOT visible at INFO level.
|
||||
# @PRE: belief_scope is available. caplog fixture is used.
|
||||
# @POST: Entry/Exit/Coherence logs are not captured at INFO level.
|
||||
@@ -133,6 +137,7 @@ def test_belief_scope_not_visible_at_info(caplog):
|
||||
|
||||
|
||||
# [DEF:test_task_log_level_default:Function]
|
||||
# @RELATION: BINDS_TO -> TestLogger
|
||||
# @PURPOSE: Test that default task log level is INFO.
|
||||
# @PRE: None.
|
||||
# @POST: Default level is INFO.
|
||||
@@ -144,6 +149,7 @@ def test_task_log_level_default():
|
||||
|
||||
|
||||
# [DEF:test_should_log_task_level:Function]
|
||||
# @RELATION: BINDS_TO -> TestLogger
|
||||
# @PURPOSE: Test that should_log_task_level correctly filters log levels.
|
||||
# @PRE: None.
|
||||
# @POST: Filtering works correctly for all level combinations.
|
||||
@@ -158,6 +164,7 @@ def test_should_log_task_level():
|
||||
|
||||
|
||||
# [DEF:test_configure_logger_task_log_level:Function]
|
||||
# @RELATION: BINDS_TO -> TestLogger
|
||||
# @PURPOSE: Test that configure_logger updates task_log_level.
|
||||
# @PRE: LoggingConfig is available.
|
||||
# @POST: task_log_level is updated correctly.
|
||||
@@ -185,6 +192,7 @@ def test_configure_logger_task_log_level():
|
||||
|
||||
|
||||
# [DEF:test_enable_belief_state_flag:Function]
|
||||
# @RELATION: BINDS_TO -> TestLogger
|
||||
# @PURPOSE: Test that enable_belief_state flag controls belief_scope logging.
|
||||
# @PRE: LoggingConfig is available. caplog fixture is used.
|
||||
# @POST: belief_scope logs are controlled by the flag.
|
||||
@@ -219,4 +227,4 @@ def test_enable_belief_state_flag(caplog):
|
||||
)
|
||||
configure_logger(config)
|
||||
# [/DEF:test_enable_belief_state_flag:Function]
|
||||
# [/DEF:tests.test_logger:Module]
|
||||
# [/DEF:TestLogger:Module]
|
||||
Reference in New Issue
Block a user