Skip to content

Commit 5908c21

Browse files
fix(tutorials): install pytest-asyncio in async agent images so their tests can run
The integration suite runs each agent's test_agent.py inside its published image. The async tutorial agents' tests use @pytest.mark.asyncio, but their Dockerfiles installed only .[dev] (which lacks pytest-asyncio), so the tests failed to import with 'ModuleNotFoundError: No module named pytest_asyncio' (exit code 2, all retries). 100_gemini_litellm installed just '.', so it had no test deps at all. Bring all 13 async agents in line with the already-working ones (e.g. 010_agent_chat, 020_state_machine): install '.[dev] pytest-asyncio httpx'. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5e65454 commit 5908c21

13 files changed

Lines changed: 13 additions & 13 deletions

File tree

examples/tutorials/10_async/00_base/090_multi_agent_non_temporal/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ COPY 10_async/00_base/090_multi_agent_non_temporal/tests /app/090_multi_agent_no
3939
COPY test_utils /app/test_utils
4040

4141
# Install the required Python packages with dev dependencies
42-
RUN uv pip install --system .[dev]
42+
RUN uv pip install --system .[dev] pytest-asyncio httpx
4343

4444
# Set environment variables
4545
ENV PYTHONPATH=/app

examples/tutorials/10_async/00_base/130_claude_code/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ COPY 10_async/00_base/130_claude_code/project /app/130_claude_code/project
3434
COPY 10_async/00_base/130_claude_code/tests /app/130_claude_code/tests
3535
COPY test_utils /app/test_utils
3636

37-
RUN uv pip install --system .[dev]
37+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3838

3939
ENV PYTHONPATH=/app
4040

examples/tutorials/10_async/00_base/140_codex/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ COPY 10_async/00_base/140_codex/project /app/140_codex/project
3737
COPY 10_async/00_base/140_codex/tests /app/140_codex/tests
3838
COPY test_utils /app/test_utils
3939

40-
RUN uv pip install --system .[dev]
40+
RUN uv pip install --system .[dev] pytest-asyncio httpx
4141

4242
ENV PYTHONPATH=/app
4343
ENV AGENT_NAME=ab140-codex

examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ COPY 10_async/10_temporal/060_open_ai_agents_sdk_hello_world/tests /app/060_open
4646
COPY test_utils /app/test_utils
4747

4848
# Install the required Python packages with dev dependencies
49-
RUN uv pip install --system .[dev]
49+
RUN uv pip install --system .[dev] pytest-asyncio httpx
5050

5151
WORKDIR /app/060_open_ai_agents_sdk_hello_world
5252

examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ COPY 10_async/10_temporal/070_open_ai_agents_sdk_tools/tests /app/070_open_ai_ag
4646
COPY test_utils /app/test_utils
4747

4848
# Install the required Python packages with dev dependencies
49-
RUN uv pip install --system .[dev]
49+
RUN uv pip install --system .[dev] pytest-asyncio httpx
5050

5151
WORKDIR /app/070_open_ai_agents_sdk_tools
5252

examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ COPY 10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/tests /app/08
4646
COPY test_utils /app/test_utils
4747

4848
# Install the required Python packages with dev dependencies
49-
RUN uv pip install --system .[dev]
49+
RUN uv pip install --system .[dev] pytest-asyncio httpx
5050

5151
WORKDIR /app/080_open_ai_agents_sdk_human_in_the_loop
5252

examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ COPY 10_async/10_temporal/090_claude_agents_sdk_mvp/tests /app/090_claude_agents
4646
COPY test_utils /app/test_utils
4747

4848
# Install the required Python packages with dev dependencies
49-
RUN uv pip install --system .[dev]
49+
RUN uv pip install --system .[dev] pytest-asyncio httpx
5050

5151
WORKDIR /app/090_claude_agents_sdk_mvp
5252

examples/tutorials/10_async/10_temporal/100_gemini_litellm/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ WORKDIR /app/100_gemini_litellm
4040
COPY 10_async/10_temporal/100_gemini_litellm/project /app/100_gemini_litellm/project
4141

4242
# Install the required Python packages
43-
RUN uv pip install --system .
43+
RUN uv pip install --system .[dev] pytest-asyncio httpx
4444

4545
WORKDIR /app/100_gemini_litellm
4646

examples/tutorials/10_async/10_temporal/110_pydantic_ai/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ COPY 10_async/10_temporal/110_pydantic_ai/project /app/110_pydantic_ai/project
3131
COPY 10_async/10_temporal/110_pydantic_ai/tests /app/110_pydantic_ai/tests
3232
COPY test_utils /app/test_utils
3333

34-
RUN uv pip install --system .[dev]
34+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3535

3636
ENV PYTHONPATH=/app
3737

examples/tutorials/10_async/10_temporal/120_openai_agents/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ COPY 10_async/10_temporal/120_openai_agents/project /app/120_openai_agents/proje
3131
COPY 10_async/10_temporal/120_openai_agents/tests /app/120_openai_agents/tests
3232
COPY test_utils /app/test_utils
3333

34-
RUN uv pip install --system .[dev]
34+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3535

3636
ENV PYTHONPATH=/app
3737

0 commit comments

Comments
 (0)