Skip to content

tests: normalize draft_docs fixture indentation - #4152

Open
Uomocapra wants to merge 1 commit into
mkdocs:masterfrom
Uomocapra:codex/tests-draft-docs-pathspec
Open

Uomocapra wants to merge 1 commit into
mkdocs:masterfrom
Uomocapra:codex/tests-draft-docs-pathspec

Conversation

@Uomocapra

@Uomocapra Uomocapra commented Jun 25, 2026 •

Copy link
Copy Markdown

Summary

The draft_docs fixture had extra indentation from the Python string, which newer pathspec versions treat as part of the pattern. This dedents the fixture so the test matches the YAML block shown in the user guide.

I reproduced the same failure on upstream master before applying the change.

Testing

I checked the change with git diff --check, hatch run +py=3.12 test:python -m unittest mkdocs.tests.build_tests.BuildTests.test_draft_docs_with_comments_from_user_guide, hatch run +py=3.12 test:python -m unittest mkdocs.tests.build_tests.BuildTests, and hatch run style:check.

@Uomocapra

Uomocapra commented Jun 25, 2026 •

Copy link
Copy Markdown
Author

CI note: the CPython jobs, lint, package, docs build, and style checks pass for this fixture change. The remaining PyPy failures happen while installing dependencies before the test suite starts, so they appear unrelated to this PR.

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