fix: cross-platform test compatibility

- test_channel_plugins: fix assertion logic for discoverable channels
- test_filesystem_tools: normalize path separators for Windows
- test_tool_validation: use python to generate output, avoid cmd line limits
This commit is contained in:
chengyongru
2026-03-14 02:03:15 +08:00
committed by Xubin Ren
parent dbdb43faff
commit 91d95f139e
3 changed files with 14 additions and 7 deletions

View File

@@ -123,8 +123,11 @@ def test_discover_all_includes_builtins():
with patch(_EP_TARGET, return_value=[]):
result = discover_all()
for name in discover_channel_names():
assert name in result
# discover_all() only returns channels that are actually available (dependencies installed)
# discover_channel_names() returns all built-in channel names
# So we check that all actually loaded channels are in the result
for name in result:
assert name in discover_channel_names()
def test_discover_all_includes_external_plugin():