Skip to content

test(workflows): hoist worker setup into conftest fixture#145

Merged
pratyush618 merged 1 commit into
masterfrom
test/workflow-worker-fixture
May 8, 2026
Merged

test(workflows): hoist worker setup into conftest fixture#145
pratyush618 merged 1 commit into
masterfrom
test/workflow-worker-fixture

Conversation

@pratyush618
Copy link
Copy Markdown
Collaborator

Summary

Replaces 14 identical _start_worker / _stop_worker helpers spread across 7 workflow test files with a single workflow_worker context-manager fixture in tests/python/conftest.py. Tests now use with workflow_worker(): instead of the start/try/finally/stop pattern.

Net diff: 8 files, +171 / -318 lines. All 62 workflow tests pass.

Addresses recommendation 5 from the 2026-05-08 audit (.claude/reports/audit-2026-05-08.md).

Test plan

  • uv run python -m pytest tests/python/test_workflows_*.py -v — 62 passed.
  • uv run ruff check tests/python/test_workflows_*.py tests/python/conftest.py — clean.
  • uv run mypy tests/python/test_workflows_*.py tests/python/conftest.py --no-incremental — clean.

@github-actions github-actions Bot added the tests label May 8, 2026
@pratyush618 pratyush618 merged commit e2db994 into master May 8, 2026
19 checks passed
@pratyush618 pratyush618 deleted the test/workflow-worker-fixture branch May 8, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant