hermes-agent/tests/gateway/test_kanban_auto_decompose_live.py
teknium1 61fa0f47ec test: purge low-value tests, lane py07 (216 removed)
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).
2026-09-23 03:15:26 -07:00

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