Skip to content

fix(tutorials): add pytest-asyncio to async tutorial dev deps (#481) - #482

Closed
deepthi-rao-scale wants to merge 0 commit into
mainfrom
next
Closed

fix(tutorials): add pytest-asyncio to async tutorial dev deps (#481)#482
deepthi-rao-scale wants to merge 0 commit into
mainfrom
next

Conversation

@deepthi-rao-scale

@deepthi-rao-scale deepthi-rao-scale commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds pytest-asyncio and httpx to the dev dependencies of five async tutorial pyproject.toml files that were previously missing them, enabling async test execution for these tutorials.

  • Five tutorials updated: 090_multi_agent_non_temporal, 060_open_ai_agents_sdk_hello_world, 070_open_ai_agents_sdk_tools, 080_open_ai_agents_sdk_human_in_the_loop, and 090_claude_agents_sdk_mvp all receive the same two additions to their [project.optional-dependencies] dev section.
  • Consistent with existing pattern: Sibling tutorials like 120_openai_agents and 130_langgraph already carry these same deps. The test files use explicit @pytest.mark.asyncio decorators and @pytest_asyncio.fixture, which are compatible with the default strict mode of pytest-asyncio ≥ 0.21 without needing asyncio_mode = "auto".

Confidence Score: 5/5

Safe to merge — adds two missing dev-only dependencies across five tutorial projects with no runtime impact.

All five changes are identical, isolated additions to optional dev dependencies. The test files already use the explicit @pytest.mark.asyncio and @pytest_asyncio.fixture patterns that work correctly with the deps being added, and the change is consistent with how sibling tutorials are already configured.

Files Needing Attention: No files require special attention.

Important Files Changed

Filename Overview
examples/tutorials/10_async/00_base/090_multi_agent_non_temporal/pyproject.toml Adds pytest-asyncio and httpx to dev deps; matches the pattern used by sibling tutorials. Tests use explicit @pytest.mark.asyncio decorators, which work correctly without asyncio_mode config.
examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/pyproject.toml Adds pytest-asyncio and httpx to dev deps; consistent with sibling tutorial pyproject.toml files that already carried these deps.
examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml Adds pytest-asyncio and httpx to dev deps; straightforward dependency alignment.
examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml Adds pytest-asyncio and httpx to dev deps; straightforward dependency alignment.
examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/pyproject.toml Adds pytest-asyncio and httpx to dev deps; straightforward dependency alignment.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Tutorial pyproject.toml\ndev dependencies] --> B{Has pytest-asyncio\nand httpx?}
    B -- Before PR --> C[❌ Missing in 5 tutorials\n060, 070, 080, 090 temporal\n090 base]
    B -- After PR --> D[✅ Added to all 5 tutorials]
    D --> E[pytest-asyncio\nenables async test functions]
    D --> F[httpx\nenables async HTTP client\nin tests]
    E --> G[Tests use @pytest.mark.asyncio\nand @pytest_asyncio.fixture\n→ works in strict mode default]
Loading

Reviews (1): Last reviewed commit: "fix(tutorials): add pytest-asyncio to as..." | Re-trigger Greptile

@deepthi-rao-scale
deepthi-rao-scale enabled auto-merge (squash) July 30, 2026 18:30
@stainless-app stainless-app Bot closed this Jul 30, 2026
auto-merge was automatically disabled July 30, 2026 18:39

Pull request was closed

@greptile-apps

greptile-apps Bot commented Jul 30, 2026

Copy link
Copy Markdown

No reviewable files after applying ignore patterns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant