CtrlK
BlogDocsLog inGet started
Tessl Logo

temporal-python-testing

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.

Install with Tessl CLI

npx tessl i github:wshobson/agents --skill temporal-python-testing
What are skills?

Overall
score

86%

Does it follow best practices?

Evaluation87%

1.12x

Agent success when using this skill

Validation for skill structure

SKILL.md
Review
Evals

Evaluation results

100%

8%

Temporal Subscription Reminder Workflow — Unit Tests

Unit testing with time-skipping

Criteria
Without context
With context

Time-skipping env

100%

100%

Fixture yield/shutdown

100%

100%

Module-scoped fixture

0%

100%

Async test decorator

100%

100%

Activity isolation

100%

100%

ActivityEnvironment.run

100%

100%

Time-skipping benefit

100%

100%

Success path tested

100%

100%

Error/failure path tested

100%

100%

Worker task_queue

100%

100%

Import source

100%

100%

Without context: $0.8900 · 3m 26s · 32 turns · 78 in / 13,822 out tokens

With context: $1.1272 · 2m 57s · 45 turns · 5,239 in / 10,226 out tokens

63%

-7%

Order Fulfilment Workflow — Integration Test Suite

Integration testing with mocked activities

Criteria
Without context
With context

unittest.mock usage

0%

0%

Mock as activity

50%

0%

Mock call assertion

0%

0%

non_retryable error

100%

100%

Transient retry test

100%

70%

Parallel activities

100%

100%

Signal test

100%

100%

Query test

100%

100%

Session fixture

0%

0%

Integration directory

100%

100%

Error path coverage

100%

100%

Without context: $1.1491 · 4m 45s · 42 turns · 37 in / 17,611 out tokens

With context: $1.1589 · 2m 46s · 42 turns · 332 in / 8,893 out tokens

98%

27%

Temporal Python Project Bootstrap — Configuration and Deterministic Workflows

Pytest project config and determinism

Criteria
Without context
With context

asyncio_mode = auto

100%

100%

cov-fail-under=80

100%

100%

cov=src options

100%

100%

Test markers defined

33%

100%

strict-markers

0%

100%

fixture_loop_scope

0%

100%

coveragerc source

100%

100%

coveragerc omit

100%

100%

coveragerc exclude_lines

0%

100%

temporalio version

100%

100%

pytest-asyncio version

100%

100%

pytest-xdist included

0%

100%

requires-python

100%

100%

workflow.random() used

50%

100%

workflow.now() used

100%

100%

External calls in activities

100%

100%

workflow.get_version usage

50%

75%

Without context: $0.9248 · 3m 19s · 37 turns · 36 in / 12,301 out tokens

With context: $3.8167 · 11m 42s · 62 turns · 301 in / 44,264 out tokens

Evaluated
Agent
Claude Code

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.