Skip to content

refactor(test): decouple examples from integration harness - #2

Merged
moonyue-w merged 3 commits into
mainfrom
1789906941-py-sdk-example-detesting
Sep 22, 2026
Merged

moonyue-w merged 3 commits into
mainfrom
1789906941-py-sdk-example-detesting

Conversation

@moonyue-w

Copy link
Copy Markdown
Collaborator

Summary

  • move reusable assertions, harnesses, scenarios, cleanup, memory helpers, and the mock service under tests/support
  • move account-backed tests under tests/integration and keep them deselected by default
  • slim examples to independently runnable samples with no test responsibility
  • add missing Forward/Managed topic examples to match the Go SDK surface

Validation

  • uv run make lint
  • uv run make typecheck
  • uv run make test — 2819 passed, 12 deselected
  • uv run make docs-check
  • CN account-backed Forward/Managed scenarios verified; model-sensitive resource cases passed on isolated rerun
  • all Forward and Managed examples executed successfully

…mples

tests/support 承载断言层+框架+逐字场景+桩+finish_session×2+finish_dream;test_examples→test_scenarios_offline 改测 tests/support(safe_error 两分支保留);新建 tests/integration;testpaths/marker/addopts。examples 未改。

Task: 1789906941
移除断言层(TurnResult/wait_reply/turn/ProjectMemory),保留运行时;场景改纯演示 print、无 verify;删 conftest 与两个 test_live。

Task: 1789906941
…ng_deltas to match Go parity

Task: 1789906941
@moonyue-w
moonyue-w merged commit bc5bc65 into main Sep 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant