mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 18:34:04 +01:00
The last six over-cap files split into eleven new modules, in two passes since the first cut left five still over. python_pkg has no violations left at all, down from 50 when this effort started. Each split carries the whole preamble including the module's pytest fixtures - started, toolkit and session are taken as parameters and resolve lexically, so a hand-written import block would have missed them. ruff then pruned 82 unused imports. Pass count is 277 before and after, checked after both passes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY
20 lines
1.6 KiB
JSON
20 lines
1.6 KiB
JSON
{
|
|
"title": "Clear the six over-cap wsg_grabber test modules, finishing python_pkg",
|
|
"objective": "Bring python_pkg/wsg_grabber's six remaining test modules under the repo-wide 250-line cap, which takes the whole of python_pkg from 50 violations at the start of this effort to zero.",
|
|
"acceptance_criteria": [
|
|
"bash ~/utils/scripts/check_file_length.sh --all lists no file under python_pkg at all.",
|
|
"The wsg_grabber suite still reports exactly 277 passing tests -- the same count as before the split, proving no test was dropped or silently skipped.",
|
|
"The package keeps 100% branch coverage of the wsg_grabber source modules.",
|
|
"Each split file carries the whole original preamble, including its pytest fixtures, so that fixture resolution is unchanged; no fixture is redefined in a way that shadows conftest.py's autouse isolate_paths.",
|
|
"No patch string changes: the source was split in earlier sessions and every patched name already resolves on the module each file names.",
|
|
"No assertion is changed and no test is deleted, skipped or weakened.",
|
|
"No suppression is added and no coverage exclusion is introduced."
|
|
],
|
|
"out_of_scope": [
|
|
"Changing what any test asserts.",
|
|
"Touching the wsg_grabber source, which earlier sessions already brought under the cap.",
|
|
"Converting the per-module fixture builders into conftest fixtures, which would change every call site."
|
|
],
|
|
"verifier": "timeout 180 env PYTHONPATH=. python3 -m pytest python_pkg/wsg_grabber/tests -q (expects exactly 277 passed), plus bash ~/utils/scripts/check_file_length.sh --all showing no python_pkg entry, plus pre-commit run --files on the touched files."
|
|
}
|