test: group tests into feature-area subdirs#150
Merged
Conversation
4 tasks
pratyush618
added a commit
that referenced
this pull request
May 8, 2026
Squash-merge of #150 added the subdir copies without removing the top-level originals, leaving every test file present in two places. Removes the 50 stale top-level files and the duplicate prefork_apps/ directory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on top of #149. Once #149 lands, the base will be retargeted to
masterand this PR's diff will read as a pure file-move.Groups the 52 flat
test_*.pyfiles into 7 feature-area subdirs that match the taxonomy already documented in.claude/skills/testing/SKILL.md:tests/core/tests/worker/prefork_apps/)tests/resources/tests/workflows/tests/observability/tests/integrations/tests/dashboard/Top-level
tests/conftest.pystays — fixtures (queue,run_worker,workflow_worker,poll_until) propagate down via pytest's hierarchical discovery. No__init__.pyfiles at any level.tests/prefork_apps/moves totests/worker/prefork_apps/so it stays adjacent totest_prefork.py— the test usesPath(__file__).parentto make it importable, which keeps working unchanged.No CI/config edits needed:
testpaths = ["tests"]already covers subdirs, pytest discoverstest_*.pyrecursively, and the path-filter globtests/**matches.Test plan
uv run python -m pytest tests/ --collect-only— 514 tests collected (same count as before).uv run python -m pytest tests/workflows/ tests/worker/test_prefork.py— 83 passed, 1 skipped (exercises theprefork_appsimport path after the move).uv run mypy py_src/taskito/ tests/ --no-incremental— clean.uv run ruff check py_src/ tests/— clean.