Skip to content

test: report a bare docs/adr/NNNN citation as unresolved - #129

Merged
lesnik512 merged 1 commit into
mainfrom
test/adr-short-citations
Sep 19, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
test/adr-short-citations

Conversation

@lesnik512

Copy link
Copy Markdown
Member

tests/test_adr_citations.py only matched docs/adr/NNNN-<slug>.md, so a citation written as a bare docs/adr/NNNN was invisible to it. Two such citations in tests/test_client_parity.py had to be found and fixed by hand during #128; after a renumber they would have pointed at whichever record holds that number next.

The pattern now also captures the bare form. A bare number names no file, so it falls out of the existing is_file() check as unresolved, with no second code path. One new case in the test-of-the-test covers it (red first, then green), and the INVARIANT: docstring states the rule.

The same file was rolled out identically to every modern-python repo on 2026-09-15; this change should follow the same route. Checked: pytest --cov at 100%, ruff, eof-fixer.

@lesnik512
lesnik512 merged commit e164843 into main Sep 19, 2026
8 checks passed
@lesnik512
lesnik512 deleted the test/adr-short-citations branch September 19, 2026 10:14
This was referenced Sep 19, 2026
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