feat: support complet des images — arborescence, visionneuse, indexation #108
This commit is contained in:
@@ -70,11 +70,20 @@ class TestFileCRUD:
|
||||
assert info is None
|
||||
|
||||
def test_index_single_file_sync_unsupported(self, test_vault_dir):
|
||||
bin_file = Path(test_vault_dir) / "test_image.png"
|
||||
bin_file.write_bytes(b"fake png data")
|
||||
bin_file = Path(test_vault_dir) / "test_binary.exe"
|
||||
bin_file.write_bytes(b"fake exe data")
|
||||
info = _index_single_file_sync("TestVault", test_vault_dir, str(bin_file))
|
||||
assert info is None
|
||||
|
||||
def test_index_single_file_sync_image_metadata_only(self, test_vault_dir):
|
||||
# #108-A2 — images are indexed (name/size/mtime) but never read.
|
||||
img_file = Path(test_vault_dir) / "test_image.png"
|
||||
img_file.write_bytes(b"fake png data")
|
||||
info = _index_single_file_sync("TestVault", test_vault_dir, str(img_file))
|
||||
assert info is not None
|
||||
assert info["extension"] == ".png"
|
||||
assert info["content"] == ""
|
||||
|
||||
def test_add_and_remove_file(self, client):
|
||||
path = "crud_test_unique_12345.md"
|
||||
file_info = {
|
||||
|
||||
Reference in New Issue
Block a user