Wave icon indicating copy to clipboard operation
Wave copied to clipboard

Move Python tooling tests into a dedicated test package

Open LunaStev opened this issue 2 months ago • 0 comments

Resolution — completed and superseded by Rust tooling

The contributor's Python test-relocation commits from PR #1065 were preserved with their original history in PR #1071. That PR then completed #1070 by replacing project-owned Python execution/verification code and its overlapping tests with the native Rust wave-tools crate.

Current tooling contracts live in tools/tests and run through Cargo or the Meson tooling suite. The original relocation scope below is historical; keeping production Python scripts at their old paths is not the final migration contract. Do not restore the removed Python test package or duplicate its tests. The high-precision reference generator and Meson's Python runtime are intentional retained uses, not unfinished work under this issue.

No contributor work remains under this completed issue.

Historical implementation scope and evidence

Problem

The top-level tools/ directory mixes executable maintenance scripts with Python unit-test modules. As more tooling is added, it becomes harder to distinguish runnable tools from test-only files, and CI/documentation must keep referring to test modules from the same namespace as production helpers.

Scope

Move the Python tooling unit tests into a dedicated package such as tools/tests/ while keeping production tool paths unchanged.

Update imports, python -m unittest module paths, syntax-check commands, and contributor documentation as needed. Do not redesign the test runner or change tool behavior as part of this move.

Completion criteria

  • [ ] Production scripts keep their current paths under tools/.
  • [ ] Python unit-test modules live under the dedicated test package.
  • [ ] Existing tooling tests still run from the repository root.
  • [ ] CI and documented local test commands use the new module paths.
  • [ ] No existing test coverage is dropped during the move.

Related: #578

LunaStev avatar Sep 15 '26 14:09 LunaStev