Skip to content

Commit 96970a7

Browse files
ahouseholderCopilot
andcommitted
docs: record use-case subpackage test migration pattern in BUILD_LEARNINGS
- Flat-to-subpackage test migration: remove old flat files instead of keeping both to avoid duplicate test collection - Parent conftest fixtures are inherited automatically; only the vocab registration side-effect import needs copying per subdirectory Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4b71afe commit 96970a7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

plan/BUILD_LEARNINGS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,14 @@ update **both** `pyproject.toml` markers AND any `.github/workflows/` YAML files
7979
reference the mark by name. A renamed mark in test files without a corresponding
8080
workflow update causes `pytest` to select 0 tests and exit with code 5 (no tests
8181
collected), failing CI even though the rename itself is correct.
82+
83+
### 2026-06-12 USE-CASE-SPLIT-881 — flat-to-subpackage test migration pattern
84+
85+
When migrating flat test files into per-submodule subdirectories, the existing
86+
test classes map cleanly onto the semantic clusters already established by the
87+
source split. Removing the old flat files and creating new per-submodule files
88+
(rather than leaving both) avoids duplicate test collection and keeps the
89+
layout strictly mirrored. The parent `conftest.py` fixtures are automatically
90+
inherited via pytest's upward conftest search, so only the vocabulary
91+
registration side-effect import needs copying into each new subdirectory
92+
conftest.

0 commit comments

Comments
 (0)