Skip to content

test: document rename-only Git path normalization - #67

Open
carlitogwapito wants to merge 1 commit into
cscorley:mainfrom
carlitogwapito:codex/test-rename-only-paths
Open

carlitogwapito wants to merge 1 commit into
cscorley:mainfrom
carlitogwapito:codex/test-rename-only-paths

Conversation

@carlitogwapito

Copy link
Copy Markdown

This adds a small, self-contained regression module for #43. No parser changes.

The two rename-only cases are marked unittest.expectedFailure because the bug is still present on current main. One uses ordinary names; the other uses real a/ and b/ directories, so a future fix can't accidentally strip those as well. A passing unified-diff control checks that one outer prefix is removed while the real directories remain.

I saw that #66 was closed during the author's cleanup. This doesn't resubmit that parser change; it's just an executable test case for the still-open issue.

Run from the repository root:

python -m unittest tests.test_rename_only

Focused validation on Python 3.14.4: 3 tests run, 1 passed, 2 expected failures. Both expected failures are the wrong path pairs described above, not import/setup failures. Ruff checks and compilation passed. I didn't run the full suite, Black, hosted CI, or other Python/platform combinations.

When #43 is fixed, the two expectedFailure decorators can be removed once the assertions pass. I'd keep the nested-directory case to guard against stripping a real path component twice.

This branch has not been deployed

No deployments
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