temporal-python-testing by sickn33/antigravity-awesome-skills
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill temporal-python-testing使用 pytest 对 Temporal 工作流进行综合测试的方法,针对特定测试场景提供渐进式资源。
resources/implementation-playbook.md。推荐方法 (来源: docs.temporal.io/develop/python/testing-suite):
三种测试类型 :
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
此技能通过渐进式披露提供详细指导。根据你的测试需求加载特定资源:
文件 : resources/unit-testing.md 何时加载 : 隔离测试单个工作流或活动时 包含内容 :
文件 : resources/integration-testing.md 何时加载 : 测试带有模拟外部依赖项的工作流时 包含内容 :
文件 : resources/replay-testing.md 何时加载 : 验证确定性或部署工作流更改时 包含内容 :
文件 : resources/local-setup.md 何时加载 : 设置开发环境时 包含内容 :
import pytest
from temporalio.testing import WorkflowEnvironment
from temporalio.worker import Worker
@pytest.fixture
async def workflow_env():
env = await WorkflowEnvironment.start_time_skipping()
yield env
await env.shutdown()
@pytest.mark.asyncio
async def test_workflow(workflow_env):
async with Worker(
workflow_env.client,
task_queue="test-queue",
workflows=[YourWorkflow],
activities=[your_activity],
):
result = await workflow_env.client.execute_workflow(
YourWorkflow.run,
args,
id="test-wf-id",
task_queue="test-queue",
)
assert result == expected
from temporalio.testing import ActivityEnvironment
async def test_activity():
env = ActivityEnvironment()
result = await env.run(your_activity, "test-input")
assert result == expected_output
推荐覆盖率 (来源: docs.temporal.io 最佳实践):
需要时加载特定资源 :
resources/unit-testing.mdresources/integration-testing.mdresources/local-setup.mdresources/replay-testing.md每周安装量
90
代码仓库
GitHub 星标数
27.4K
首次出现
2026年1月28日
安全审计
安装于
opencode88
gemini-cli87
cursor85
claude-code84
github-copilot84
codex84
Comprehensive testing approaches for Temporal workflows using pytest, progressive disclosure resources for specific testing scenarios.
resources/implementation-playbook.md.Recommended Approach (Source: docs.temporal.io/develop/python/testing-suite):
Three Test Types :
This skill provides detailed guidance through progressive disclosure. Load specific resources based on your testing needs:
File : resources/unit-testing.md When to load : Testing individual workflows or activities in isolation Contains :
File : resources/integration-testing.md When to load : Testing workflows with mocked external dependencies Contains :
File : resources/replay-testing.md When to load : Validating determinism or deploying workflow changes Contains :
File : resources/local-setup.md When to load : Setting up development environment Contains :
import pytest
from temporalio.testing import WorkflowEnvironment
from temporalio.worker import Worker
@pytest.fixture
async def workflow_env():
env = await WorkflowEnvironment.start_time_skipping()
yield env
await env.shutdown()
@pytest.mark.asyncio
async def test_workflow(workflow_env):
async with Worker(
workflow_env.client,
task_queue="test-queue",
workflows=[YourWorkflow],
activities=[your_activity],
):
result = await workflow_env.client.execute_workflow(
YourWorkflow.run,
args,
id="test-wf-id",
task_queue="test-queue",
)
assert result == expected
from temporalio.testing import ActivityEnvironment
async def test_activity():
env = ActivityEnvironment()
result = await env.run(your_activity, "test-input")
assert result == expected_output
Recommended Coverage (Source: docs.temporal.io best practices):
Load specific resource when needed :
resources/unit-testing.mdresources/integration-testing.mdresources/local-setup.mdresources/replay-testing.mdWeekly Installs
90
Repository
GitHub Stars
27.4K
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode88
gemini-cli87
cursor85
claude-code84
github-copilot84
codex84
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
43,100 周安装
Nano Banana Pro:基于Gemini 3 Pro的AI图像生成与编辑工具,支持1K/2K/4K分辨率
117 周安装
Godot 4 GDScript 设计模式与最佳实践 | 游戏开发架构、信号、场景优化指南
149 周安装
Agent Builder:AI智能体构建框架,简化客户服务、研究、运营等领域的AI应用开发
120 周安装
Tailwind CSS UI重构指南:基于《重构UI》的52条最佳实践与代码规范
140 周安装
字体搭配建议器 - AI字体排版工具,推荐Google Fonts组合与层级示例
137 周安装
Nansen CLI:分析Polymarket交易员活动与盈亏的区块链工具
195 周安装