Tooluck logoTooluck
SKILL.md

temporal-python-testing

Agent skill fromwshobson/agents

Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.

How to install temporal-python-testing

install temporal-python-testing
# install the agents pack with the skills CLI
npx skills add wshobson/agents

# or add only this skill to Claude Code: copy the folder

plugins/backend-development/skills/temporal-python-testing/

# into

~/.claude/skills/temporal-python-testing/ (all projects)

.claude/skills/temporal-python-testing/ (one project)

plugins/backend-development/skills/temporal-python-testing/SKILL.md

MITFull file
1# Temporal Python Testing Strategies
2
3Comprehensive testing approaches for Temporal workflows using pytest, progressive disclosure resources for specific testing scenarios.
4
5## When to Use This Skill
6
7- **Unit testing workflows** - Fast tests with time-skipping
8- **Integration testing** - Workflows with mocked activities
9- **Replay testing** - Validate determinism against production histories
10- **Local development** - Set up Temporal server and pytest
11- **CI/CD integration** - Automated testing pipelines
12- **Coverage strategies** - Achieve ≥80% test coverage
13
14## Testing Philosophy
15
16**Recommended Approach** (Source: docs.temporal.io/develop/python/testing-suite):
17
18- Write majority as integration tests
19- Use pytest with async fixtures
20- Time-skipping enables fast feedback (month-long workflows → seconds)
21- Mock activities to isolate workflow logic
22- Validate determinism with replay testing
23
24**Three Test Types**:
25
261. **Unit**: Workflows with time-skipping, activities with ActivityEnvironment
272. **Integration**: Workers with mocked activities
283. **End-to-end**: Full Temporal server with real activities (use sparingly)
29
30## Available Resources
31
32This skill provides detailed guidance through progressive disclosure. Load specific resources based on your testing needs:
33
34### Unit Testing Resources
35
36**File**: `resources/unit-testing.md`
37**When to load**: Testing individual workflows or activities in isolation
38**Contains**:
39
40- WorkflowEnvironment with time-skipping
41…

Excerpt shown under the repository's MIT license.

More skills in agents

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates