temporal-python-testing

Test Temporal workflows with pytest and mocked activities.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/PriyanshKuniyal/gemini-cli-resources --skill temporal-python-testing-priyanshkuniyal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: temporal-python-testing
Source: https://github.com/PriyanshKuniyal/gemini-cli-resources/tree/main/extensions/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing
Command: npx skills add https://github.com/PriyanshKuniyal/gemini-cli-resources --skill temporal-python-testing-priyanshkuniyal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires temporalio, pytest-asyncio, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the process of testing Temporal workflows, reducing time spent on repetitive testing tasks and debugging test failures.

Core Features & Use Cases

  • Unit Testing: Quickly test individual workflows or activities in isolation with time-skipping for long-running workflows.
  • Integration Testing: Execute workflows with mocked activities to ensure the core logic works as expected without external dependencies.
  • Replay Testing: Validate determinism and ensure that changes to workflow code won't break existing workflows.
  • Local Development: Provides the necessary setup for local Temporal server and pytest integration for local development and testing.

Quick Start

Execute a basic workflow test by running the following command:

python test_workflow.py

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 in Python without a live server?

You can test Temporal workflows in Python without a live server by using pytest with mocking strategies. This approach ensures code reliability by validating workflow logic and performance under different scenarios locally.

Can I use pytest to test long-running Temporal workflows faster?

Yes, you can use pytest to test long-running Temporal workflows faster by utilizing time-skipping. This feature allows you to quickly test individual workflows in isolation without waiting for real time to pass.

How do I mock activities for Temporal workflow integration testing?

Mock activities for Temporal workflow integration testing by executing workflows with mocked dependencies. This ensures the core logic works as expected without requiring external services or a live Temporal server.

Does Temporal Python testing support replay testing to validate workflow determinism?

Yes, Temporal Python testing supports replay testing to validate determinism. This ensures that changes to your workflow code will not break existing workflows by replaying their execution history.

What is needed to set up a local development environment for Temporal and pytest?

To set up a local development environment for Temporal and pytest, you need the temporalio and pytest-asyncio dependencies. This provides the necessary integration for local testing and execution of your workflows.