mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 05:04:38 +03:00
Allow MetadataFactory.fetch_http to skip sha256
`MetadataFactory.fetch_http` must often download HTML pages, not Updates.xml files. download.qt.io does not store checksums for these files, so this particular function must be allowed to download these pages without using a checksum.
This commit is contained in:
@@ -96,7 +96,7 @@ def test_cli_determine_qt_version(
|
||||
monkeypatch, host, target, arch, version_or_spec: str, expected_version: Version, is_bad_spec: bool
|
||||
):
|
||||
_html = (Path(__file__).parent / "data" / f"{host}-{target}.html").read_text("utf-8")
|
||||
monkeypatch.setattr(MetadataFactory, "fetch_http", lambda self, _: _html)
|
||||
monkeypatch.setattr(MetadataFactory, "fetch_http", lambda *args, **kwargs: _html)
|
||||
cli = Cli()
|
||||
cli._setup_settings()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user