Skip to content

test_lint_targets whitaker-fallback cases fail on a clean main checkout #53

Description

@leynos

Running the template test suite (make test) on an unmodified main checkout (commit 7d7eb00) fails three parametrised cases:

FAILED tests/test_template/test_lint_targets.py::test_makefile_resolves_whitaker_fallback[path]
FAILED tests/test_template/test_lint_targets.py::test_makefile_resolves_whitaker_fallback[home]
FAILED tests/test_template/test_lint_targets.py::test_makefile_resolves_whitaker_fallback[missing]

For the path and home cases, the stub whitaker script is never executed, so the marker file the stub should create does not exist:

AssertionError: expected generated lint target to execute path Whitaker
assert False
 +  where False = exists()
 +    where exists = PosixPath('.../whitaker-ran').exists

The make lint invocation in the generated project returns 0 without running the stub, suggesting the Makefile's Whitaker resolution (or the test's PATH/HOME sandboxing) does not behave as the test expects on this environment.

Environment: Rocky Linux 10, uvx --with pytest-copier --with pyyaml --with syrupy --with make-parser --with hypothesis pytest tests/, Python via uv, GNU make from /usr/bin.

Observed while validating #52 — the failures reproduce identically on a clean main checkout (verified via git stash), so they are unrelated to that change. The remaining 47 tests pass (1 skipped).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtesting

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions