fix: CI test — allow github channel 'warn' when gh CLI not installed

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.
This commit is contained in:
Panniantong
2026-02-27 13:39:34 +01:00
parent 875f0987a6
commit a881db4261
+1 -1
View File
@@ -15,7 +15,7 @@ class TestDoctor:
def test_zero_config_channels_ok(self, tmp_config): def test_zero_config_channels_ok(self, tmp_config):
results = check_all(tmp_config) results = check_all(tmp_config)
assert results["web"]["status"] == "ok" 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["bilibili"]["status"] in ("ok", "warn") # warn on servers
assert results["rss"]["status"] == "ok" assert results["rss"]["status"] == "ok"