mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix(kanban): ignore stale current board pointers
This commit is contained in:
parent
2a285d5ec2
commit
8c82d0664d
2 changed files with 14 additions and 5 deletions
|
|
@ -160,6 +160,15 @@ class TestCurrentBoard:
|
|||
kb.set_current_board("filepick")
|
||||
assert kb.get_current_board() == "filepick"
|
||||
|
||||
def test_stale_file_pointer_falls_back_to_default(self, fresh_home):
|
||||
current = fresh_home / "kanban" / "current"
|
||||
current.parent.mkdir(parents=True, exist_ok=True)
|
||||
current.write_text("missing-board\n", encoding="utf-8")
|
||||
|
||||
assert kb.get_current_board() == "default"
|
||||
assert not kb.board_exists("missing-board")
|
||||
assert [b["slug"] for b in kb.list_boards()] == ["default"]
|
||||
|
||||
def test_env_beats_file(self, fresh_home, monkeypatch):
|
||||
kb.create_board("a")
|
||||
kb.create_board("b")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue