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:
parent
875f0987a6
commit
a881db4261
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue