mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-17 04:11:35 +00:00
Change-detectors, tautologies, source-reading tests, redundant duplicates, mock-echo tests and dead/unrunnable tests. Per-test rationale in the lane ledger (category + reason for every removal).
24 lines
735 B
Python
24 lines
735 B
Python
"""Tests for live auto-decompose settings resolution (issue #49638).
|
|
|
|
The gateway dispatcher used to capture ``kanban.auto_decompose`` once at boot,
|
|
so a user who flipped it to ``false`` to STOP runaway auto-decompose (which had
|
|
created and launched tasks they didn't intend) found the flag had no effect
|
|
without a full gateway restart. ``_resolve_auto_decompose_settings`` is now
|
|
called every tick, reading the current config.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
from gateway.kanban_watchers_common import _resolve_auto_decompose_settings
|
|
|
|
|
|
|
|
|
|
def test_disabled_when_flag_false():
|
|
enabled, per_tick = _resolve_auto_decompose_settings(
|
|
lambda: {"kanban": {"auto_decompose": False}}
|
|
)
|
|
assert enabled is False
|
|
|
|
|