Skip to content

Commit 50d90b1

Browse files
declan-scaleclaude
andcommitted
fix(claude-code): inherit shared tutorials pytest.ini so test_utils imports
The per-tutorial [tool.pytest.ini_options] block (only asyncio_mode="auto") made pytest treat the tutorial's own pyproject.toml as the rootdir config, so examples/tutorials/pytest.ini (pythonpath=.) was never discovered and `from test_utils...` failed with ModuleNotFoundError in the live test. asyncio_mode="auto" was redundant: every async test already uses an explicit @pytest.mark.asyncio marker. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 594681d commit 50d90b1

3 files changed

Lines changed: 0 additions & 9 deletions

File tree

examples/tutorials/00_sync/060_claude_code/pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,3 @@ dev = [
2323

2424
[tool.hatch.build.targets.wheel]
2525
packages = ["project"]
26-
27-
[tool.pytest.ini_options]
28-
asyncio_mode = "auto"

examples/tutorials/10_async/00_base/130_claude_code/pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,3 @@ dev = [
2323

2424
[tool.hatch.build.targets.wheel]
2525
packages = ["project"]
26-
27-
[tool.pytest.ini_options]
28-
asyncio_mode = "auto"

examples/tutorials/10_async/10_temporal/140_claude_code/pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,3 @@ dev = [
2525

2626
[tool.hatch.build.targets.wheel]
2727
packages = ["project"]
28-
29-
[tool.pytest.ini_options]
30-
asyncio_mode = "auto"

0 commit comments

Comments
 (0)