Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
fix: psutil test on low storage
NTFSvolumec8fe13d9a66a
diff --git a/tests/test_storage.py b/tests/test_storage.pyindex 1f64c78a6..92c5126d9 100644--- a/tests/test_storage.py+++ b/tests/test_storage.py@@ -93,8 +93,10 @@ async def test_no_psutil_check_does_not_raise_exception(tmp_path: Path) -> None:def test_no_psutil_returns_size_of_closest_parent_on_file_that_does_not_exists(tmp_path: Path) -> None:folder = tmp_path / "folder_abc/that/does/not/exists"result = storage._disk_usage(folder)- assert result > 1e10- assert result == pytest.approx(storage._disk_usage(tmp_path), abs=1e6)+ import shutil++ real_usage = shutil.disk_usage(tmp_path).free+ assert result == pytest.approx(real_usage, abs=1e9)async def test_psutil_returns_size_of_closest_parent_on_file_that_does_not_exists(tmp_path: Path) -> None: