mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4906] [Other] tools/test_strata_mcp.py: unittest.main() sits before the last three test classes, so a direct run skips 7 tests #2253
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @XiaoBinGan on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4906
tools/test_strata_mcp.pyends its run early when it is executed directly: itsif __name__ == "__main__": unittest.main()block sits at line 937 of 1112, before the last three test classes.unittest.main()collects theclasses defined at that point, so the classes appended after it never run.
Reproduce
The 7 tests in
RemoveMissingFilesTest,DiskUsageTestandDraftLayerAndCancelare skipped by the direct run,silently, with no warning. They are in the file's own sections ("Deleting a model whose plan lists files that are
already gone…", "Storage showed IQ3_S as 0.0 GB…", draft-layer progress), so a person running the file the way the
other
tools/test_*.pyfiles are run does not see them pass or fail.The classes came in later commits (
917d2fc3,31030b17) appended at the end of the file, after the guard thatwas already in the middle.
Expected
Every test in the file runs in a direct run as well, like the other
tools/test_strata_mcp.pyclasses.