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:
David Dalcino
2022-03-06 18:16:37 -08:00
parent 12d20a3d06
commit b62db9ee2a
3 changed files with 11 additions and 11 deletions

View File

@@ -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()