Build and run agents you can see, understand and trust.
Python agentchatbotlarge-language-modelsllmllm-agentmcpmulti-agentmulti-modalreact-agentrealtime-agentvoice-agentvoice-assistant
test(workspace): skip POSIX-shell-dependent tests on Windows hosts without coreutils (#2609)
GGbond180a83890704
diff --git a/tests/workspace_daytona_test.py b/tests/workspace_daytona_test.pyindex c5c08d484..2ef6cb080 100644--- a/tests/workspace_daytona_test.py+++ b/tests/workspace_daytona_test.py@@ -1208,6 +1208,10 @@ class TestDaytonaWorkspaceBuiltinToolsMock(IsolatedAsyncioTestCase):with self.assertRaisesRegex(ValueError, "already exists"):await self.workspace.add_skill(skill_dir)+ @unittest.skipIf(+ shutil.which("test") is None,+ "host-backed Daytona fake relies on POSIX sandbox commands",+ )async def test_offload_context_tool_result_and_reset(self) -> None:"""Offload writes sessions/data and reset clears persistent state."""data_block = DataBlock(diff --git a/tests/workspace_skill_archive_test.py b/tests/workspace_skill_archive_test.pyindex f13fd160e..c5e843ab8 100644--- a/tests/workspace_skill_archive_test.py+++ b/tests/workspace_skill_archive_test.py@@ -2,8 +2,10 @@"""Test cases for installing a skill from an archive stream."""import ioimport os+import shutilimport tarfileimport tempfile+import unittestimport zipfilefrom typing import AsyncIteratorfrom unittest.async_case import IsolatedAsyncioTestCase@@ -143,6 +145,10 @@ class AddSkillArchiveSandboxedTest(IsolatedAsyncioTestCase):await self.workspace.initialize()self.skills_dir = os.path.join(self.tmp, "skills", "default")+ @unittest.skipIf(+ shutil.which("mv") is None,+ "base add_skill_archive shells out to POSIX mv/mkdir",+ )async def test_directory_name_is_suffixed_when_taken(self) -> None:"""A repeated name gets a numeric suffix rather than an error."""for index in range(3):@@ -157,6 +163,10 @@ class AddSkillArchiveSandboxedTest(IsolatedAsyncioTestCase):["pack", "pack-1", "pack-2"],)+ @unittest.skipIf(+ shutil.which("mv") is None,+ "base add_skill_archive shells out to POSIX mv/mkdir",+ )async def test_flat_archive_is_accepted(self) -> None:"""SKILL.md at the archive root needs no wrapping folder."""await WorkspaceBase.add_skill_archive(