Skip to content

Commit

Permalink
add virtualfs tests for collages
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Oct 17, 2023
1 parent 44a066f commit d2e2d46
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion rose/virtualfs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def can_read(p: Path) -> bool:

with startfs(config):
root = config.fuse_mount_dir

assert not (root / "lalala").exists()

assert (root / "Albums").is_dir()
assert (root / "Albums" / "r1").is_dir()
assert not (root / "Albums" / "lalala").exists()
Expand Down Expand Up @@ -72,7 +75,15 @@ def can_read(p: Path) -> bool:
assert not (root / "Labels" / "Silk Music" / "r1" / "lalala").exists()
assert can_read(root / "Labels" / "Silk Music" / "r1" / "01.m4a")

assert not (root / "lalala").exists()
assert (root / "Collages").is_dir()
assert (root / "Collages" / "Rose Gold").is_dir()
assert (root / "Collages" / "Ruby Red").is_dir()
assert not (root / "Collages" / "lalala").exists()
assert (root / "Collages" / "Rose Gold" / "1. r1").is_dir()
assert not (root / "Collages" / "Rose Gold" / "lalala").exists()
assert (root / "Collages" / "Rose Gold" / "1. r1" / "01.m4a").is_file()
assert not (root / "Collages" / "Rose Gold" / "1. r1" / "lalala").exists()
assert can_read(root / "Collages" / "Rose Gold" / "1. r1" / "01.m4a")


@pytest.mark.usefixtures("seeded_cache")
Expand Down

0 comments on commit d2e2d46

Please sign in to comment.