From 1a202f6e68223763b412b86841b52432eb87af84 Mon Sep 17 00:00:00 2001 From: Marc Foley Date: Fri, 17 Jan 2025 15:10:46 +0000 Subject: [PATCH] use https for metadata url --- .../checks/vendorspecific/googlefonts/conditions.py | 2 +- tests/test_checks_googlefonts.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/fontbakery/checks/vendorspecific/googlefonts/conditions.py b/Lib/fontbakery/checks/vendorspecific/googlefonts/conditions.py index 6f502e0534..32dc6b5fea 100644 --- a/Lib/fontbakery/checks/vendorspecific/googlefonts/conditions.py +++ b/Lib/fontbakery/checks/vendorspecific/googlefonts/conditions.py @@ -483,7 +483,7 @@ def production_metadata(context): import requests - meta_url = "http://fonts.google.com/metadata/fonts" + meta_url = "https://fonts.google.com/metadata/fonts" return requests.get(meta_url, timeout=context.config.get("timeout")).json() diff --git a/tests/test_checks_googlefonts.py b/tests/test_checks_googlefonts.py index e2d3f815f9..7494b92316 100644 --- a/tests/test_checks_googlefonts.py +++ b/tests/test_checks_googlefonts.py @@ -1204,7 +1204,7 @@ def test_check_metadata_includes_production_subsets(check, requests_mock): """Check METADATA.pb has production subsets.""" requests_mock.get( - "http://fonts.google.com/metadata/fonts", + "https://fonts.google.com/metadata/fonts", json={ "familyMetadataList": [ { @@ -2686,7 +2686,7 @@ def test_check_repo_zip_files(check, tmp_path): @check_id("googlefonts/vertical_metrics") def test_check_vertical_metrics(check, requests_mock): requests_mock.get( - "http://fonts.google.com/metadata/fonts", + "https://fonts.google.com/metadata/fonts", json={ "familyMetadataList": [ {"family": "Akshar"}, @@ -2959,7 +2959,7 @@ def new_context(): @check_id("googlefonts/cjk_vertical_metrics") def test_check_cjk_vertical_metrics(check, requests_mock): requests_mock.get( - "http://fonts.google.com/metadata/fonts", + "https://fonts.google.com/metadata/fonts", json={ "familyMetadataList": [], },