AGENT SKILL
temporal-python-testing
Test Temporal workflows with pytest, time-skipping, and mocking strategies (unit, integration, replay).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- temporal-python-testing
- description
- Test Temporal workflows with pytest, time-skipping, and mocking strategies (unit, integration, replay).
02 资源文件 4
- 参考文档resources/integration-testing.md12.7 KB
- 参考文档resources/local-setup.md11.8 KB
- 参考文档resources/replay-testing.md12.1 KB
- 参考文档resources/unit-testing.md8.5 KB
03 SKILL.md 正文
Steps
- Choose the testing level based on scope:
- Unit: workflow logic with time-skipping; activities in isolation.
- Integration: worker + workflow with mocked activities/external boundaries.
- Replay: validate determinism against recorded histories.
- For workflow tests, start a time-skipping
WorkflowEnvironment, run aWorker, then execute the workflow and assert results. - Mock only external boundaries (activities/external clients), and keep workflow logic deterministic.
- Use replay tests before/when changing workflow code paths that may affect determinism.
- Keep tests fast and isolated; ensure environment/workers are properly shut down.
Expected Result
Reliable, deterministic Temporal tests that run quickly and catch workflow regressions without flakiness.
04 同仓库更多 Skills
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
★ 0
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
★ 0
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms
★ 0
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
★ 0
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
★ 0
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms
★ 0