The region editor says when a repeater has no home region
The firmware parks its home mark on the wildcard when no region is home, so *^ means no home region set. The wildcard row's note now reads 'unscoped · no home' then, and 'unscoped floods' once a region is home. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
79fe79a857
commit
b89cd266cc
2 files changed
+19
-2
No files matched your search
@@ -827,3 +827,14 @@ def tui_ctx(tmp_path: Path): # noqa: ANN201
|
||||
ctx.ui = TuiUi(TuiSession())
|
||||
yield ctx
|
||||
ctx.repo.close()
|
||||
|
||||
|
||||
def test_the_wildcard_row_says_when_no_home_region_is_set() -> None:
|
||||
"""``*^`` is the firmware parking its home mark on the wildcard: no home region set."""
|
||||
from meshterm.ui.region_editor import _row_note
|
||||
|
||||
unset = parse_region_dump("*^ F\n lakeside F\n")
|
||||
assert _row_note(unset.rows[0], unset) == "unscoped · no home"
|
||||
homed = parse_region_dump("* F\n lakeside^ F\n")
|
||||
assert _row_note(homed.rows[0], homed) == "unscoped floods"
|
||||
assert _row_note(homed.rows[1], homed) == "home"
|
||||
Reference in new issue
Block a user