temporal-python-testing

Test Temporal workflows with pytest using time-skipping and mocks.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/ArogyaReddy/https-github.com-wshobson-agents --skill temporal-python-testing-arogyareddy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: temporal-python-testing
Source: https://github.com/ArogyaReddy/https-github.com-wshobson-agents/tree/main/plugins/backend-development/skills/temporal-python-testing
Command: npx skills add https://github.com/ArogyaReddy/https-github.com-wshobson-agents --skill temporal-python-testing-arogyareddy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Temporal testing can be slow and brittle without deterministic time control, mocks, and structured testing patterns.

Core Features & Use Cases

  • Time-skipping enabled tests for rapid feedback on long-running Temporal workflows.
  • Mocked activities and resource orchestration patterns to isolate workflow logic.
  • Progressive disclosure resources to load unit/integration/replay testing guidance on demand.

Quick Start

Run a time-skipping workflow test with a Worker to verify basic workflow execution.

Frequently Asked Questions about temporal-python-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Temporal workflows deterministically using pytest?

Temporal workflow testing achieves determinism using pytest combined with time-skipping and mocks to isolate workflow logic. This approach ensures fast, reliable test execution without waiting for real time to pass.

What is time-skipping in Temporal testing and when should I use it?

Time-skipping in Temporal testing rapidly advances simulated time to validate long-running workflows instantly. Use it during local development and CI pipelines to gain rapid feedback on workflow execution without real delays.

How do I mock activities in Temporal workflows for unit testing?

Mocking activities in Temporal workflows isolates workflow logic by replacing actual resource orchestration with controlled responses. This pattern enables fast unit testing by verifying workflow behavior independently of external dependencies.

Does Temporal testing support replay testing and integration testing?

Temporal testing supports replay, integration, and unit testing through progressive disclosure resources. These on-demand patterns load targeted guidance to validate workflow execution across local development and CI pipelines.

Why are my Temporal workflow tests slow and brittle?

Temporal workflow tests become slow and brittle without deterministic time control and structured mocking. Implementing time-skipping and mocked activities stabilizes test execution and eliminates flaky time-dependent failures.

Can I run Temporal workflow tests in CI pipelines?

Temporal workflow tests run in CI pipelines using deterministic time-skipping and mocked activities. This setup validates workflow execution rapidly, ensuring consistent feedback across integration and replay testing stages.