test(code_language): suppress large fixture output and consolidate tests#3806
Open
ceberam wants to merge 1 commit into
Open
test(code_language): suppress large fixture output and consolidate tests#3806ceberam wants to merge 1 commit into
ceberam wants to merge 1 commit into
Conversation
…nt tests Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
Contributor
|
✅ DCO Check Passed Thanks @ceberam, all your commits are properly signed off. 🎉 |
Contributor
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
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.
Summary
Cleans up
tests/test_code_language_detection.pywithout changing anytest logic or coverage:
Suppress verbose fixture output — the four large-input cases in
test_detection_stays_linear_on_large_inputwere previously parametrizedwith raw string values (~200 k characters each). Under
pytest -vtheseare printed verbatim as test IDs, flooding CI logs. Each case now uses
pytest.param(..., id="<short-name>")so the output stays terse(
[repeated-from-keywords],[repeated-select-lines], etc.).Consolidate hint-interaction tests —
test_hint_takes_precedence_over_contentand
test_unrecognized_hint_falls_back_to_contenttested the sameintegration boundary (
hintvs. content resolution indetect_code_language). They are merged into a single parametrizedtest_detect_with_hint, consistent with the style used throughoutthe module.
No test cases were added or removed; all 55 tests continue to pass.
Checklist: