Skip to content

Commit 6c79423

Browse files
Merge branch 'main' into 240-pytest-good-practices
2 parents 9b464c8 + 78aac78 commit 6c79423

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/reference/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Unreleased changes
99

1010
- Review the coverage configuration in light of `covdefaults`, adopting its `assert_never` exclusion and `skip_covered` report setting, and raising all package coverage gates to 100% ({gh-pr}`390`)
1111
- Adopt pytest's strict mode, following the recommendations from pytest's "Good Integration Practices" guide ({gh-pr}`387`)
12+
- Make the e2e path sanity check independent of the checkout directory's name, so tests can run from git worktrees ({gh-pr}`391`)
1213
- Bump actions/download-artifact from 7 to 8 ({gh-pr}`368`)
1314
- Bump actions/upload-artifact from 6 to 7 ({gh-pr}`369`)
1415
- Bump sigstore/gh-action-sigstore-python from 3.2.0 to 3.3.0 ({gh-pr}`370`)

tests/e2e/test_examples.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313

1414

1515
def test_paths_exist() -> None:
16-
assert PATH_ROOT.name == "ridgeplot"
16+
# Sanity check that PATH_ROOT points at the repo root, without
17+
# depending on the name of the checkout directory (which differs
18+
# in git worktrees and renamed clones)
19+
assert (PATH_ROOT / "pyproject.toml").is_file()
1720
assert PATH_ARTIFACTS.is_dir()
1821
assert PATH_CHARTS.is_dir()
1922

0 commit comments

Comments
 (0)