mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
fix(kanban): restore HERMES_KANBAN_BOARD after scoped slash override
This commit is contained in:
parent
2b3bf17dfa
commit
641e40c4bd
2 changed files with 30 additions and 1 deletions
|
|
@ -392,3 +392,13 @@ def test_run_slash_missing_required_arg_friendly_error(kanban_home):
|
|||
out = kc.run_slash("show")
|
||||
assert "/kanban show" in out
|
||||
assert "task_id" in out
|
||||
|
||||
|
||||
def test_run_slash_board_override_restores_prior_env(kanban_home, monkeypatch):
|
||||
kb.create_board("alpha")
|
||||
kb.create_board("beta")
|
||||
monkeypatch.setenv("HERMES_KANBAN_BOARD", "beta")
|
||||
|
||||
kc.run_slash("--board alpha list")
|
||||
|
||||
assert os.environ.get("HERMES_KANBAN_BOARD") == "beta"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue