Skip to content

Commit

Permalink
Test with & without caching
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Feb 19, 2024
1 parent 21994a4 commit ced4a78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datalad_fuse/tests/test_fuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ def fusing(


@pytest.mark.parametrize("transparent", [False, True])
def test_fuse(tmp_path, transparent, url_dataset):
@pytest.mark.parametrize("caching", [False, True])
def test_fuse(tmp_path, transparent, caching, url_dataset):
ds, data_files = url_dataset
if transparent:
dots = [".datalad", ".git", ".gitattributes"]
else:
dots = [".datalad", ".gitattributes"]
with fusing(ds.path, tmp_path, transparent=transparent) as mount:
with fusing(ds.path, tmp_path, transparent=transparent, caching=caching) as mount:
assert sorted(q.name for q in mount.iterdir()) == dots + sorted(data_files)
for fname, blob in data_files.items():
assert os.path.getsize(mount / fname) == len(blob)
Expand Down

0 comments on commit ced4a78

Please sign in to comment.