Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update watch test file formatting
Jakub Dobrýd92a166d8f28
diff --git a/packages/python-sdk/tests/async/sandbox_async/files/test_watch.py b/packages/python-sdk/tests/async/sandbox_async/files/test_watch.pyindex 0b3dcb211..7973fc03a 100644--- a/packages/python-sdk/tests/async/sandbox_async/files/test_watch.py+++ b/packages/python-sdk/tests/async/sandbox_async/files/test_watch.py@@ -47,11 +47,14 @@ async def test_watch_recursive_directory_changes(async_sandbox: AsyncSandbox):event_triggered = Event()expected_filename = f"{nested_dirname}/{filename}"+def handle_event(e: FilesystemEvent):if e.type == FilesystemEventType.WRITE and e.name == expected_filename:event_triggered.set()- handle = await async_sandbox.files.watch_dir(dirname, on_event=handle_event, recursive=True)+ handle = await async_sandbox.files.watch_dir(+ dirname, on_event=handle_event, recursive=True+ )await async_sandbox.files.write(f"{dirname}/{nested_dirname}/{filename}", content)@@ -72,11 +75,14 @@ async def test_watch_recursive_directory_folder_addition(async_sandbox: AsyncSanevent_triggered = Event()expected_filename = f"{nested_dirname}/{filename}"+def handle_event(e: FilesystemEvent):if e.type == FilesystemEventType.WRITE and e.name == expected_filename:event_triggered.set()- handle = await async_sandbox.files.watch_dir(dirname, on_event=handle_event, recursive=True)+ handle = await async_sandbox.files.watch_dir(+ dirname, on_event=handle_event, recursive=True+ )await async_sandbox.files.make_dir(f"{dirname}/{nested_dirname}")await async_sandbox.files.write(f"{dirname}/{nested_dirname}/{filename}", content)