Repository navigation
tests(docs): Harden codeblock env and FIRE sort - #223
Merged
Merged
Conversation
why: AGENTS.md still described README.md as >>>-only doctests, outer PYTEST_ADDOPTS leaked into sandboxed inner pytest runs, and _run_fire_evidence_command left rg stdout unsorted while its fallback sorted Path tuples instead of POSIX strings. what: - Update README.md and conftest.py rows in AGENTS.md - Pop PYTEST_ADDOPTS in _make_sandbox_env and the end-to-end test helper - Sort normalized POSIX paths in both branches of _run_fire_evidence_command - Add regressions for PYTEST_ADDOPTS isolation and rg/rglob sort parity
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #222.
Summary
README.mdandconftest.pyentries inAGENTS.mdto reflect plainpythonand runnableconsolecode-block execution viatests/_docs_codeblocks.pyalongside doctests.PYTEST_ADDOPTSin_make_sandbox_env(tests/_docs_codeblocks.py) and in the end-to-end mini-project helper (tests/test_docs_codeblocks.py) so exported outer pytest options (-m,-k,--junitxml) cannot alter inner pytest runs.rgbranch and therglobfallback of_run_fire_evidence_commandso hyphenated and nested paths order identically across POSIX and Windows.Verification
uv run ruff check .,uv run ruff format --check .uv run ty checkon Python 3.12–3.15 and--python-version 3.12 --python-platform win32uv run pytest -m ""andPYTEST_ADDOPTS="-m documentation" uv run pytest README.md docs/topics/testing.mdtests/_docs_codeblocks.pytoorigin/masterand breaking each fix independently; realrgexecution stays unverified locally wherergis not installed.