tests/test_gradient_pattern_fill.py imports non-existent src.svg_parser.fill_resolver — whole-repo pytest collection fails #115
Labels
No labels
blocked:children
blocked:depends-101
blocked:depends-103
blocked:depends-104
blocked:needs-attention
blocked:needs-decision
blocked:no-changes
blocked:preflight
bug
chore
feature-request
in-progress
lint-cleanup
needs-decompose
performance
quality
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/easystitch#115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
The tracked test file
tests/test_gradient_pattern_fill.py(present onmain) importssrc.svg_parser.fill_resolver(module membersDEFAULT_LINEAR_BANDS,UnsupportedSVGFeatureError,resolve_paint_references,resolve_svg_string), but that module does not exist anywhere — not onmain, not on any branch, not in any stash (git log --all -- src/svg_parser/fill_resolver.pyis empty;git cat-file -e main:src/svg_parser/fill_resolver.pyfails; none ofstash@{0..2}contain it).Reproduction steps
Mark/easystitch(branchmain)python3 -m pytest tests/ --co -qtest file -> src.svg_parser.fill_resolver -> svg_parser package init -> coordinate_converter -> parser -> ..pipeline_api -> .embroidery_converter.data -> classifierfails during collection, so no tests run (pytest aborts on collection error).Actual vs expected
pytest tests/on a clean checkout fails at collection — the whole-repo test/verify gate cannot pass.Notes
40d2f3b) and further touched by the #111 lint fix (aeba1a8). Issue #103 is closed and unrelated (color quantization); this break is not tracked in any open issue.gradient_pattern_resolver.pyreferencing missingUnsupportedFillError) and mentioned stashes referencing afill_resolvermodule name — that module never landed in git.Ref: kanban card
t_218724deKanban card
t_f1cec614reverted toready— was markeddonewhile this issue was still open. The dual-state rule says kanbandonerequires the issue to be closed first. Code may already be shipped (this issue needs verification), but the issue itself was never closed. Audit:donecards whose linked issue is open will be flipped back automatically going forward.Fix landed:
d42e46eonmain.Restored
src/svg_parser/fill_resolver.py(598 lines) from stash commitcbd51170. The module was committed during #103 but never landed on main.Verification:
ruff check .passes (exit 0)fill_resolverimports resolve (DEFAULT_LINEAR_BANDS,UnsupportedSVGFeatureError,resolve_paint_references,resolve_svg_string)embroidery_converterinstead of failing onfill_resolverKnown limitation: The test still cannot fully collect due to a pre-existing circular import in the
srcpackage (svg_parser.parser→pipeline_api→embroidery_converter.classifier→ back toparser). This is a separate issue — thefill_resolvermodule is correctly restored and the ruff gate passes.