What problem does it solve?
This Skill addresses the challenge of reliably testing Temporal Python workflows, enabling fast feedback and deterministic results by leveraging pytest, time-skipping, and mocking strategies.
Core Features & Use Cases
- Unit Testing with time-skipping: Run fast tests that simulate long-running workflows.
- Integration & Replay Testing: Validate end-to-end execution and determinism against recorded histories.
- Local Dev & CI/CD: Set up Temporal server locally and integrate tests into pipelines for safe deployments.
- Resource-Guided Learning: Load targeted resources such as unit-testing.md, integration-testing.md, replay-testing.md, and local-setup.md to tailor testing strategies.
Quick Start
Create a pytest-based test that starts a time-skipping WorkflowEnvironment and runs a simple workflow with a Worker, then assert expected results. Example steps: install Temporal Python SDK and pytest, configure a minimal workflow and activity, and execute a test client to verify the outcome.