-
Notifications
You must be signed in to change notification settings - Fork 3
BUG: Address nightly failures due to stale/old tests #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,13 +29,13 @@ class TestRegisterTimeSeriesImages: | |
| _class_name = "registration_time_series_images" | ||
|
|
||
| def test_registrar_initialization_default(self) -> None: | ||
| """Test that the default registration_method is RegisterImagesGreedyICON.""" | ||
| """Test that the default registration_method is RegisterImagesGreedy.""" | ||
| registrar = RegisterTimeSeriesImages() | ||
| assert isinstance(registrar.registrar, RegisterImagesGreedyICON), ( | ||
| "Default registrar should be RegisterImagesGreedyICON" | ||
| assert isinstance(registrar.registrar, RegisterImagesGreedy), ( | ||
| "Default registrar should be RegisterImagesGreedy" | ||
| ) | ||
|
|
||
| print("\nTime series registrar defaults to RegisterImagesGreedyICON") | ||
| print("\nTime series registrar defaults to RegisterImagesGreedy") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Remove the changed The test assertion already verifies the default registrar. Remove this diagnostic output because this test module is not a standalone script. As per coding guidelines: 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
|
|
||
| def test_registrar_initialization_Greedy_ICON(self) -> None: | ||
| """Initializes correctly with a RegisterImagesGreedyICON instance.""" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
Repository: Project-MONAI/physiotwin4d
Length of output: 50384
🏁 Script executed:
Repository: Project-MONAI/physiotwin4d
Length of output: 42433
🏁 Script executed:
Repository: Project-MONAI/physiotwin4d
Length of output: 9690
Use entitlement-aware license validation
TotalSegmentator v2.0.0
has_valid_license_offline()returns"yes"for any configured 18-character value. A stale or revoked key can therefore enable the licensed-task calls and later cause TotalSegmentator’s weight-download path to raiseSystemExit.Use entitlement-aware validation with a fallback to unlicensed tasks. Add a regression test for an invalid 18-character configured key.
🤖 Prompt for AI Agents
Source: Coding guidelines