temporal-python-testing

Test Temporal Python SDK workflows with time-skipping, mocking, and replay testing.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/yusufcmg/Antigravity-Agents-Workflows --skill temporal-python-testing-yusufcmg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: temporal-python-testing
Source: https://github.com/yusufcmg/Antigravity-Agents-Workflows/tree/main/.agent/skills/backend/temporal-testing
Command: npx skills add https://github.com/yusufcmg/Antigravity-Agents-Workflows --skill temporal-python-testing-yusufcmg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of testing Temporal workflows, ensuring reliability and correctness through advanced strategies like time-skipping, mocking, and replay testing.

Core Features & Use Cases

  • Unit Testing: Write fast, isolated tests for workflows and activities using time-skipping.
  • Integration Testing: Test workflows with mocked external dependencies and error injection.
  • Replay Testing: Validate determinism and code changes against production histories.
  • Local Development: Set up a local Temporal environment for seamless testing.
  • Use Case: When developing a complex Temporal workflow, use this Skill to write comprehensive unit tests that run in seconds, integration tests that mock external API calls, and replay tests to ensure your code changes are safe for production deployment.

Quick Start

Use the temporal-python-testing skill to write a basic unit test for a Temporal workflow using pytest and time-skipping.

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 Python workflows with pytest?

You test Temporal Python workflows by writing isolated unit tests with pytest using time-skipping to fast-forward long-running executions, and mocking activities to validate external dependencies and error injection.

What is replay testing in Temporal and when do I need it?

Replay testing in Temporal validates workflow determinism by replaying production event histories against your current code, and you need it to ensure code changes remain safe for production deployment without breaking existing executions.

Can I mock activities for Temporal integration testing?

Yes, you can mock activities for Temporal integration testing by injecting external dependency mocks and simulating error conditions, allowing you to test workflow logic comprehensively without hitting real external APIs.

What's the best way to set up a local Temporal environment for testing?

The best way to set up a local Temporal environment for testing is using Docker Compose to run the Temporal server, paired with pytest to execute your workflow and activity test suites seamlessly during local development.

Why does my Temporal workflow test fail determinism checks?

Temporal workflow tests fail determinism checks when workflow code performs non-deterministic operations, and you can validate your code changes against production histories using replay testing to identify and resolve these determinism violations.

Does Temporal Python SDK support time-skipping for unit tests?

Yes, the Temporal Python SDK supports time-skipping for unit tests, allowing you to automatically fast-forward time in isolated workflow tests so long-running executions complete in seconds without waiting for real timers.