Skip to content

Commit

Permalink
tests/executor: mock downloads for hash tests
Browse files Browse the repository at this point in the history
Resolves: #9114
  • Loading branch information
abn committed Mar 5, 2024
1 parent 137e785 commit 374babb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/installation/test_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,13 @@ def test_executor_known_hashes(
config: Config,
io: BufferedIO,
fixture_dir: FixtureDirGetter,
mock_file_downloads: None,
) -> None:
# when installing sdist, an isolated build environment is required to extract metadata
# this will install any build system requirements into the environment, to avoid failures when
# network is not available we enable mock_file_downloads fixture here
# see: https://github.com/python-poetry/poetry/issues/9114

package_source_url: Path = (
fixture_dir("distributions") / "demo-0.1.0.tar.gz"
).resolve()
Expand Down

0 comments on commit 374babb

Please sign in to comment.