From ab6044daa8efd95a30b88b9615fc99b7d6185b36 Mon Sep 17 00:00:00 2001 From: Deepthi Rao Date: Thu, 30 Jul 2026 13:40:11 -0400 Subject: [PATCH] fix(tutorials): add pytest-asyncio to async tutorial dev deps The test images for five async tutorials install only `.[dev]`, but their tests import pytest_asyncio and those tutorials do not list pytest-asyncio (or httpx) in their pyproject dev extras. As a result `docker exec ... pytest tests/test_agent.py` fails at collection with `ModuleNotFoundError: No module named 'pytest_asyncio'`. Declare pytest-asyncio and httpx in each tutorial's dev optional-dependencies, matching the tutorials that already run their async tests correctly (e.g. 110_pydantic_ai, all of 00_sync). This keeps the test deps with the project so they also work when running pytest locally, not just inside the built image. Affected: - 10_async/00_base/090_multi_agent_non_temporal - 10_async/10_temporal/060_open_ai_agents_sdk_hello_world - 10_async/10_temporal/070_open_ai_agents_sdk_tools - 10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop - 10_async/10_temporal/090_claude_agents_sdk_mvp Co-Authored-By: Claude Opus 4.8 (1M context) --- .../00_base/090_multi_agent_non_temporal/pyproject.toml | 2 ++ .../060_open_ai_agents_sdk_hello_world/pyproject.toml | 2 ++ .../10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml | 2 ++ .../080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml | 2 ++ .../10_temporal/090_claude_agents_sdk_mvp/pyproject.toml | 2 ++ 5 files changed, 10 insertions(+) diff --git a/examples/tutorials/10_async/00_base/090_multi_agent_non_temporal/pyproject.toml b/examples/tutorials/10_async/00_base/090_multi_agent_non_temporal/pyproject.toml index a2234c45e..97c221dc2 100644 --- a/examples/tutorials/10_async/00_base/090_multi_agent_non_temporal/pyproject.toml +++ b/examples/tutorials/10_async/00_base/090_multi_agent_non_temporal/pyproject.toml @@ -16,6 +16,8 @@ dependencies = [ [project.optional-dependencies] dev = [ "pytest", + "pytest-asyncio", + "httpx", "black", "isort", "flake8", diff --git a/examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/pyproject.toml b/examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/pyproject.toml index 5a1cd08d0..28cfa2f1d 100644 --- a/examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/pyproject.toml +++ b/examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/pyproject.toml @@ -17,6 +17,8 @@ dependencies = [ [project.optional-dependencies] dev = [ "pytest", + "pytest-asyncio", + "httpx", "black", "isort", "flake8", diff --git a/examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml b/examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml index 22f4e0080..343d4e01a 100644 --- a/examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml +++ b/examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml @@ -17,6 +17,8 @@ dependencies = [ [project.optional-dependencies] dev = [ "pytest", + "pytest-asyncio", + "httpx", "black", "isort", "flake8", diff --git a/examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml b/examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml index b38ee6e63..5f4c7fbe7 100644 --- a/examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml +++ b/examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml @@ -17,6 +17,8 @@ dependencies = [ [project.optional-dependencies] dev = [ "pytest", + "pytest-asyncio", + "httpx", "black", "isort", "flake8", diff --git a/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/pyproject.toml b/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/pyproject.toml index 12573a90f..23213dfd0 100644 --- a/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/pyproject.toml +++ b/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/pyproject.toml @@ -17,6 +17,8 @@ dependencies = [ [project.optional-dependencies] dev = [ "pytest", + "pytest-asyncio", + "httpx", "black", "isort", "flake8",