Skip to content

Commit 69744f9

Browse files
committed
Correct test
1 parent 260f701 commit 69744f9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_usb.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,8 +1351,11 @@ async def aiofiles_os_remove(file) -> None:
13511351
raise pw_exceptions.CacheError("Invalid file")
13521352

13531353
async def makedirs(cache_dir, exist_ok) -> None:
1354-
if cache_dir != "non_existing_folder":
1355-
raise pw_exceptions.CacheError("wrong folder to create")
1354+
if cache_dir == "mock_folder_that_exists":
1355+
return
1356+
if cache_dir == "non_existing_folder":
1357+
return
1358+
raise pw_exceptions.CacheError("wrong folder to create")
13561359

13571360
monkeypatch.setattr(pw_helpers_cache, "aiofiles_os_remove", aiofiles_os_remove)
13581361
monkeypatch.setattr(pw_helpers_cache, "makedirs", makedirs)

0 commit comments

Comments
 (0)