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 6d0e71d commit c23edc4Copy full SHA for c23edc4
tools/cache_urls_for_tests.py
@@ -38,7 +38,7 @@ def download(url):
38
39
def download_all(cache: str):
40
with ThreadPoolExecutor(max_workers=5) as executor:
41
- executor.map(download, set(iter_test_urls()))
+ return list(executor.map(download, set(iter_test_urls()))) # Consume iterator
42
43
44
if __name__ == "__main__":
@@ -47,4 +47,7 @@ def download_all(cache: str):
47
raise SystemExit("Please define VALIDATE_PYPROJECT_CACHE_REMOTE")
48
49
Path(cache).mkdir(parents=True, exist_ok=True)
50
- download_all(cache)
+ downloads = download_all(cache)
51
+ assert len(downloads) > 0, f"empty {downloads=!r}" # noqa
52
+ files = list(map(print, Path(cache).iterdir()))
53
+ assert len(files) > 0, f"empty {files=!r}" # noqa
0 commit comments