Repository navigation
Conversation
Eight tests wrote .lake/package-overrides.json by hand instead of calling the helper that already did it. _write_overrides takes a schema_version keyword for the legacy-layout cases, and the files it writes are byte-identical to the hand-written ones.
Eight tests repeated the same three assertions: no Mathlib, an indeterminate status and a mathlib-manifest-unused diagnostic. They now call _assert_mathlib_unused.
Ten assertions filtered the diagnostics for unreadable-file paths inline. _unreadable(result) returns the same list in the same order.
- Four lock-spelling tests join the URL-spelling parametrization as named cases. Three of them now also check the release, which already held. - The integer manifest version joins the newer 1.x version test. - The A versus «A» duplicate-name test joins the escape test with the same body. The case count is unchanged.
Contributor
Author
Review at 1bb3159Verdict: merge-ready. The refactor is test-only, runs the same 272 cases and keeps every check. CI is green at this head. How it was checked:
Landing
|
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.
This PR only changes tests:
tests/test_project_inspect.pygoes from 2222 to 2133 lines (+60/-149), with one commit per item. The same 272 cases run. #174, which cleans up the code these tests cover, edits other files._write_overrides. Eight tests wrote.lake/package-overrides.jsonthemselves instead of calling the helper. Three of them did so because they needed a schema version other than1.1.0. The helper now takesschema_version, and all eight call it._assert_mathlib_unused. Eight tests repeated the same three assertions: no Mathlib,indeterminatecompatibility, and amathlib-manifest-unuseddiagnostic. The helper's docstring names the verdict: a locked Mathlib that no requirement pulls in decides no release pair._unreadable. Ten assertions filtered the diagnostics forunreadable-filepaths inline._unreadable(result)returns the same list in the same order.test_equivalent_mathlib_url_spellings_matchand three single-case lock-spelling tests becometest_equivalent_lock_spellings_match_the_catalog, with named cases:url-scheme-host-case,url-dot-git,url-trailing-slash,subdir-current-directoryanduppercase-commit. Three of the cases now also check the release, which already held.test_integer_manifest_versions_are_readjoins the newer 1.x test astest_integer_and_newer_1x_manifest_versions_are_read.Aversus«A»duplicate-name test joins the three cases oftest_toml_simple_name_fallback_matches_the_equivalent_escape, which had the same body. The merged test keeps the nametest_duplicate_target_names_are_compared_as_lean_names.#90 also edits this file. It merges with this branch without adding a conflict, but it already conflicts with main, so the two cannot be test-merged yet. Merged with #174, the file passes (272).
Validation at exact head
1bb31599:ruff check autoform_cli servers testsis clean, andtests/test_project_inspect.pypasses (272).