From d2e2d463421ad21a7edde68c1501a718015d1268 Mon Sep 17 00:00:00 2001 From: blissful Date: Tue, 17 Oct 2023 16:41:40 -0400 Subject: [PATCH] add virtualfs tests for collages --- rose/virtualfs_test.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rose/virtualfs_test.py b/rose/virtualfs_test.py index 6768ec6..aced6ed 100644 --- a/rose/virtualfs_test.py +++ b/rose/virtualfs_test.py @@ -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() @@ -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")