From 977507c3b5fc5230c718bc5abbcbd96990a1a736 Mon Sep 17 00:00:00 2001 From: "takemi.ohama" Date: Sun, 25 Oct 2026 04:30:08 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20test=5Fusage=5Fcapture=20=E3=81=AE?= =?UTF-8?q?=E5=81=BD=E3=81=AE=20CLI=20=E3=81=AB=E5=91=BC=E3=81=B3=E5=87=BA?= =?UTF-8?q?=E3=81=97=E5=85=83=E3=81=AE=E7=92=B0=E5=A2=83=E5=A4=89=E6=95=B0?= =?UTF-8?q?=E3=82=92=E6=8C=81=E3=81=A1=E8=BE=BC=E3=81=BE=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit supervise の中で全体テストを走らせると、NDF_USAGE_SOURCE / NDF_USAGE_KIND が入ったまま test_runtime_specific_usage_shapes が「名乗りが無い」ことを確かめて落ちる。fixture の fake_clis で 4 つの NDF_USAGE_* を外す。 Co-Authored-By: Claude Opus 5.5 --- plugins/ndf/scripts/tests/test_usage_capture.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/ndf/scripts/tests/test_usage_capture.py b/plugins/ndf/scripts/tests/test_usage_capture.py index e2445b953..7d8226f42 100644 --- a/plugins/ndf/scripts/tests/test_usage_capture.py +++ b/plugins/ndf/scripts/tests/test_usage_capture.py @@ -94,6 +94,8 @@ def fake_clis(tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(home)) monkeypatch.setenv("CODEX_HOME", str(home / ".codex")) monkeypatch.setenv("SECRET_TOKEN", SECRET) + for name in ("NDF_USAGE_SOURCE", "NDF_USAGE_KIND", "NDF_USAGE_PLAN", "NDF_USAGE_STEP"): + monkeypatch.delenv(name, raising=False) # supervise の中で走らせても名乗りを持ち込まない return tmp_path