test_files/ tests fail with ImportError — stale tests referencing non-existent exports #14

Closed
opened 2026-05-14 15:36:16 +00:00 by Mark · 1 comment
Owner

Bug

4 of 7 test files in test_files/ fail during pytest collection with ImportError. The codebase has been refactored but the tests were not updated.

Failing Files

Test File Missing Import
test_artifact_generation.py Beyond top-level package error
test_dst_generator.py encode_command_triplet from dst_generator
test_integration.py generate_stitches from stitch_generator
test_stitch_generator.py StitchType from stitch_generator

Passes

  • tests/test_main.py — 3/3 pass ✅

Also

pyproject.toml has testpaths = ["easystitch/tests"] which doesn't match the actual directory layout. Tests live in test_files/ and tests/ at the project root, not under easystitch/tests/.

Impact

~57% of the test suite is broken and provides no coverage confidence.

## Bug 4 of 7 test files in `test_files/` fail during pytest collection with `ImportError`. The codebase has been refactored but the tests were not updated. ## Failing Files | Test File | Missing Import | |-----------|---------------| | test_artifact_generation.py | Beyond top-level package error | | test_dst_generator.py | `encode_command_triplet` from `dst_generator` | | test_integration.py | `generate_stitches` from `stitch_generator` | | test_stitch_generator.py | `StitchType` from `stitch_generator` | ## Passes - `tests/test_main.py` — 3/3 pass ✅ ## Also `pyproject.toml` has `testpaths = ["easystitch/tests"]` which doesn't match the actual directory layout. Tests live in `test_files/` and `tests/` at the project root, not under `easystitch/tests/`. ## Impact ~57% of the test suite is broken and provides no coverage confidence.
Author
Owner

Fixed in commit. Closing.

Fixed in commit. Closing.
Mark closed this issue 2026-05-15 00:24:48 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/easystitch#14
No description provided.