Changeset View
Changeset View
Standalone View
Standalone View
swh/fuse/tests/test_meta.py
- This file was added.
import json | |||||
from swh.fuse.tests.common import get_data_from_archive | |||||
from swh.fuse.tests.data.config import ALL_ENTRIES | |||||
def test_access_meta_file(fuse_mntdir): | |||||
for swhid in ALL_ENTRIES: | |||||
# On the fly mounting | |||||
file_path_archive = fuse_mntdir / "archive" / swhid | |||||
file_path_archive.exists() | |||||
file_path_meta = fuse_mntdir / f"meta/{swhid}.json" | |||||
assert file_path_meta.exists() | |||||
expected = json.dumps(get_data_from_archive(swhid)) | |||||
assert file_path_meta.read_text() == expected |