Commit 3a35c5a
Fix stale sample and test wiring
Four unrelated papercuts:
- Add the llm-stream dependency group. workflow_streams/README.md tells readers
to run `uv sync --group llm-stream` for scenario 5, but the group was never
created, so the command fails. The sample's openai import resolves today only
because the langfuse-tracing and langsmith-tracing groups happen to install
openai.
- Rename tests/activity_sticky_queues to tests/worker_specific_task_queues, and
drop the stale prefix from the two test filenames. The sample was renamed but
its test directory was not, so the tests sat under a directory naming a sample
that no longer exists.
- Locate google_genai's echo MCP server through the installed package rather than
Path(__file__).parents[2], which hardcodes the distance from the test file to
the sample and silently resolves to a nonexistent path if either moves. A
missing server script makes the test hang rather than fail, since the client
waits on a subprocess that never started.
- Add __init__.py to the five test directories that lacked it. Test filenames
collide across samples by design (workflow_test.py, activity_test.py and
mcp_test.py each appear in several), and package markers are what keep pytest
from treating them as the same module. The five worked only because they had
not collided yet.
Full suite unchanged at 150 collected, 148 passed, 4 skipped; mypy clean.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 0e2b6ed commit 3a35c5a
16 files changed
Lines changed: 7 additions & 3 deletions
File tree
- tests
- google_genai
- hello_nexus
- message_passing
- introduction
- lazy_initialization
- safe_message_handlers
- waiting_for_handlers_and_compensation
- waiting_for_handlers
- nexus_messaging
- polling
- sentry
- worker_specific_task_queues
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
File renamed without changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
0 commit comments