test(agent): assert coding_selection non-None before subscripting

This commit is contained in:
Brooklyn Nicholson 2026-06-10 02:01:20 -05:00
parent ad75423f53
commit 2667bb83f2

View file

@ -56,6 +56,7 @@ class TestCodingSelection:
_git_init(tmp_path)
cfg = {"agent": {"coding_context": "on"}}
out = cc.coding_selection(platform="cli", cwd=tmp_path, config=cfg)
assert out is not None
assert out[0] == cc.CODING_TOOLSET
def test_none_when_inactive(self, tmp_path):