Skip to content

Make e2e path sanity check worktree-friendly - #391

Merged
tpvasconcelos merged 3 commits into
mainfrom
fix-test-paths-exist
Jul 25, 2026
Merged

Make e2e path sanity check worktree-friendly#391
tpvasconcelos merged 3 commits into
mainfrom
fix-test-paths-exist

Conversation

@tpvasconcelos

@tpvasconcelos tpvasconcelos commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • tests/e2e/test_examples.py::test_paths_exist asserted that the repository root directory is named ridgeplot. That check always fails when the test suite runs from a git worktree or a clone with a different directory name, even though the computed paths are perfectly valid.
  • Replace the directory-name assertion with a repo-root marker check (pyproject.toml exists), which validates the same thing — that the Path(__file__).parents[2] arithmetic landed on the repo root — without depending on the checkout directory's name.

Test plan

  • pytest tests/e2e passes from a git worktree checkout (previously test_paths_exist failed there): 6 passed

📚 Documentation preview 📚: https://ridgeplot--391.org.readthedocs.build/en/391/

`test_paths_exist` asserted that the repo root directory is named
"ridgeplot", which fails in git worktrees and renamed clones. Check
for a repo-root marker file (pyproject.toml) instead.
@github-actions

This comment has been minimized.

@tpvasconcelos
tpvasconcelos merged commit 78aac78 into main Jul 25, 2026
13 of 18 checks passed
@tpvasconcelos
tpvasconcelos deleted the fix-test-paths-exist branch July 25, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant