fix: validate library and data paths at the application boundary

This commit is contained in:
阿白叔 committed 2026-11-23 18:06:17 +08:00
1 parent 47c2cfecc6
commit 6d2b6de027
10 files changed
+336 -36

No files matched your search

+1
View File
@@ -117,6 +117,7 @@ def batch_cli(tmp_path, monkeypatch):
def __enter__(self): return self
def __exit__(self, *_): pass
def retain_for_recovery(self): retained.append(self.drive)
Lease.mentor_path.write_bytes(b'library')
monkeypatch.setattr(network.LibraryPathLease, 'acquire', lambda _: Lease())
monkeypatch.setattr(network, 'select_library_file', lambda path: path)
monkeypatch.setattr(reader, 'read_library_fast', lambda *a, **kw: LibraryReadResult((