
Temporal Python Testing
Testing Temporal workflows properly requires understanding three distinct approaches: unit tests with time-skipping that can run month-long workflows in seconds, integration tests with mocked activities to isolate workflow logic, and replay tests that validate determinism against production histories. This skill walks you through pytest fixtures, WorkflowEnvironment setup, activity mocking patterns, and local development configuration with Docker Compose. The progressive disclosure format means you load specific resources based on what you're actually trying to test rather than wading through everything at once. Honestly saves you from the trial-and-error phase of figuring out Temporal's testing paradigms.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 5
- skills.sh installs
- 11.3K
- GitHub stars
- 42.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add wshobson/agents --skill temporal-python-testing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Temporal Python Testing Strategies
Comprehensive testing approaches for Temporal workflows using pytest, progressive disclosure resources for specific testing scenarios.
When to Use This Skill
- Unit testing workflows - Fast tests with time-skipping
- Integration testing - Workflows with mocked activities
- Replay testing - Validate determinism against production histories
- Local development - Set up Temporal server and pytest
- CI/CD integration - Automated testing pipelines
- Coverage strategies - Achieve ≥80% test coverage
Testing Philosophy
Recommended Approach (Source: docs.temporal.io/develop/python/testing-suite):
- Write majority as integration tests
- Use pytest with async fixtures
- Time-skipping enables fast feedback (month-long workflows → seconds)
- Mock activities to isolate workflow logic
- Validate determinism with replay testing
Three Test Types:
- Unit: Workflows with time-skipping, activities with ActivityEnvironment
- Integration: Workers with mocked activities
- End-to-end: Full Temporal server with real activities (use sparingly)
Available Resources
Sponsors
Details
- Repository
- github.com/wshobson/agents
- Categories
- Testing & QA, Debugging, Automation & Workflows, Python
More from wshobson/agents
All 174- Anti Reversing Techniques11.3K
- Angular Migration11.2K
- Nx Workspace Patterns11.2K
- Postmortem Writing11.2K
- Event Store Design11.2K
- Sast Configuration11.2K
- Hybrid Search Implementation11.2K
- Web3 Testing11.2K
- Distributed Tracing11.1K
- Screen Reader Testing11.1K
- Saga Orchestration11.1K
- Multi Cloud Architecture11.1K
- Spark Optimization11.1K
- Similarity Search Patterns11K
- Vector Index Tuning11K
- Hybrid Cloud Networking11K
- Turborepo Caching11K
- Pci Compliance10.9K
- Projection Patterns10.9K
- Employment Contract Templates10.9K
- Slo Implementation10.8K
- Defi Protocol Templates10.8K
- Team Composition Analysis10.7K
- Mtls Configuration10.7K