Commit e9f60e8
fix: add isdir mock to filepath unit tests
Two tests that mock the storage backend were not setting
mock_backend.isdir.return_value = False. The new encode() logic
calls backend.isdir() before backend.size(), so without the mock
isdir() returned a truthy MagicMock, making is_dir=True and
skipping the size() call entirely (leaving size=None).
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent d66a288 commit e9f60e8
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
| |||
636 | 637 | | |
637 | 638 | | |
638 | 639 | | |
| 640 | + | |
639 | 641 | | |
640 | 642 | | |
641 | 643 | | |
| |||
0 commit comments