Commit 13a87bd
Cipher
test: strengthen test_unspecified_reader_falls_back_silently to exercise fallback path
The previous test only verified LoadImage() succeeds in the happy path where
optional dependencies exist. This does not validate the critical warn-and-skip
fallback behavior when packages are missing.
Update the test to:
1. Patch SUPPORTED_READERS to simulate missing optional package (ITKReader)
2. Trigger LoadImage() to exercise the exception-catching, warn, and skip path
3. Verify the debug log about the missing package was invoked
4. Restore original reader entries afterward
This ensures the auto-select fallback path is actually tested, not just the
happy path.
Signed-off-by: Cipher <cipher@openclaw.ai>1 parent 7712ff8 commit 13a87bd
1 file changed
Lines changed: 33 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
521 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
522 | 552 | | |
523 | 553 | | |
524 | 554 | | |
| |||
0 commit comments