Repository navigation
test: cover unit selector path in shard fixture - #43286
lorenzozanee wants to merge 1 commit into
Conversation
|
|
|
| def test_unit_selection_paths_are_run(tmp_path: Path) -> None: | ||
| _write_passing_test(tmp_path) | ||
|
|
||
| result: Final = _run_shard(tmp_path, "", "0", unit_flag="misc") |
There was a problem hiding this comment.
Combined paths remain untested The real
misc shard supplies both TEST_PATH and UNIT_FLAG, but this test leaves TEST_PATH empty. If the workflow stops including that explicit path, the test will still pass because the selector stub supplies the passing file. Add a distinct explicit test path and assert that both paths run.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
#44461 removed the unit selector script and the UNIT_FLAG path, so this test case no longer applies on main. Reopen if something is missing |
TLDR
Problem this solves:
UNIT_FLAGHow it solves it:
Relevant issues
Fixes #43201
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
Screenshots / Proof of Fix
This adds fixture coverage. #43191 already clears
UNIT_FLAGfor the existing path-filter cases; this PR exercises the separate flagged branch.Before (4eb340a)
Nonempty unit flag
tmp_path; the relative selector script is absent and Bash exits 127 before pytestAfter (this PR)
Nonempty unit flag
Type
✅ Test
Caveats (if any)
Low
miscpath mapping is not exercisedFinal Attestation