We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 260f701 commit 69744f9Copy full SHA for 69744f9
tests/test_usb.py
@@ -1351,8 +1351,11 @@ async def aiofiles_os_remove(file) -> None:
1351
raise pw_exceptions.CacheError("Invalid file")
1352
1353
async def makedirs(cache_dir, exist_ok) -> None:
1354
- if cache_dir != "non_existing_folder":
1355
- raise pw_exceptions.CacheError("wrong folder to create")
+ if cache_dir == "mock_folder_that_exists":
+ return
1356
+ if cache_dir == "non_existing_folder":
1357
1358
+ raise pw_exceptions.CacheError("wrong folder to create")
1359
1360
monkeypatch.setattr(pw_helpers_cache, "aiofiles_os_remove", aiofiles_os_remove)
1361
monkeypatch.setattr(pw_helpers_cache, "makedirs", makedirs)
0 commit comments