Repository navigation
Make the Narrowed-Scan Diff-Floor Test Independent of the Working Directory - #2860
Conversation
…ectory The test narrowed the scan with a bare relative path that existed only in the hub root, so a run from any other directory failed. It now creates the directory under its temporary root and passes the absolute path. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
The change is focused, fully reviewed, and has no unresolved issues.
0 open findings
What changed in this PR
This PR makes the narrowed-scan regression test independent of the working directory.
Changes:
- Creates a temporary
catalogdirectory. - Passes its absolute path to
prose_lint.main.
| File | Description |
|---|---|
tests/test_prose_lint.py |
Makes the diff-floor test self-contained and working-directory independent. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2860 +/- ##
========================================
Coverage 60.49% 60.49%
========================================
Files 16 16
Lines 8534 8534
========================================
Hits 5163 5163
Misses 3371 3371
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
A recorded local strict-review pass covers head |
…urrency Audit to Main (#2866) ## Summary Promotes [#2857](#2857), [#2860](#2860), [#2858](#2858), [#2859](#2859), and [#2863](#2863) to main. - Over-cap config comments are split and the scenario table gains S14. - The narrowed-scan diff-floor test no longer depends on the working directory. - The EditorConfig lint task image comes from the registry CI uses. - The audit flags a publisher or merge-bot concurrency group that drifts from WORKFLOW.md. - `prose_lint.py`'s opt-in `sentence-length` check reads the remaining layouts it misread. Closes #2845 Closes #2830 Closes #2844 Closes #2856 Closes #2843 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
TestDiffScopeFloor.test_a_deliberately_narrowed_scan_is_not_told_the_narrowing_is_a_defectnarrowed the scan with the bare pathcatalog, whichprose_lint.mainresolves against the working directory. It passed only from the hub root, where a trackedcatalog/exists. The test now createsself.tmp / "catalog"and passes its absolute path, so it resolves against the mocked root.Every other
maincall in the class passes.or no path, so no sibling needed the same fix.Verification
cd tests && python3 -m unittest test_prose_lint.TestDiffScopeFloorfailed with0 != 2.tests/, fromscripts/, and from a scratch directory.python3 -m unittest discover -s tests: 2626 tests OK.Fixes #2830
🤖 Generated with Claude Code