Skip to content

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

Merged
lesnik512 merged 2 commits into
mainfrom
test/adr-short-citations
Sep 19, 2026
Merged

lesnik512 merged 2 commits 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. After a renumber or a drop such a citation points at whichever record holds that number next, and nothing notices.

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, and the INVARIANT: docstring states the rule.

Same change as modern-python/httpware#129; the file stays byte-identical across the org.

@lesnik512
lesnik512 merged commit 8635d9a into main Sep 19, 2026
13 checks passed
@lesnik512
lesnik512 deleted the test/adr-short-citations branch September 19, 2026 10:31
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