From 2667bb83f2e062f9ae4a36faa746fb9cc9158ad7 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Wed, 10 Jun 2026 02:01:20 -0500 Subject: [PATCH] test(agent): assert coding_selection non-None before subscripting --- tests/agent/test_coding_context.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/agent/test_coding_context.py b/tests/agent/test_coding_context.py index d82faa35680..b6ee13930e1 100644 --- a/tests/agent/test_coding_context.py +++ b/tests/agent/test_coding_context.py @@ -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):