From a881db42617c8268a03bd988f1afc08030f57b09 Mon Sep 17 00:00:00 2001 From: Panniantong Date: Fri, 27 Feb 2026 13:39:34 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20CI=20test=20=E2=80=94=20allow=20github?= =?UTF-8?q?=20channel=20'warn'=20when=20gh=20CLI=20not=20installed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub Actions runners don't have gh CLI pre-installed, so the doctor check returns 'warn' instead of 'ok'. Allow both in the test assertion. --- tests/test_doctor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_doctor.py b/tests/test_doctor.py index a87d56d..8f85c30 100644 --- a/tests/test_doctor.py +++ b/tests/test_doctor.py @@ -15,7 +15,7 @@ class TestDoctor: def test_zero_config_channels_ok(self, tmp_config): results = check_all(tmp_config) assert results["web"]["status"] == "ok" - assert results["github"]["status"] == "ok" + assert results["github"]["status"] in ("ok", "warn") # warn if gh CLI not installed assert results["bilibili"]["status"] in ("ok", "warn") # warn on servers assert results["rss"]["status"] == "ok"