From 4f5eba0bcc97f60cffb9fc74e34bfa4c8f1460ce Mon Sep 17 00:00:00 2001 From: Seungpyo1007 Date: Fri, 25 Sep 2026 09:57:42 +0900 Subject: [PATCH] Classify Wikidata as a Tier 2 verification source --- app/verify/hosts.py | 1 + tests/verify/test_offline.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/app/verify/hosts.py b/app/verify/hosts.py index 13102dc..b31fcb7 100644 --- a/app/verify/hosts.py +++ b/app/verify/hosts.py @@ -47,6 +47,7 @@ "geekbench.com", "kimovil.com", "devicespecifications.com", + "wikidata.org", } ) diff --git a/tests/verify/test_offline.py b/tests/verify/test_offline.py index 48199ec..aab9a00 100644 --- a/tests/verify/test_offline.py +++ b/tests/verify/test_offline.py @@ -15,11 +15,24 @@ def test_host_tiers(): assert hosts.tier_of_host("en.wikipedia.org") == 1 assert hosts.tier_of_host("ark.intel.com") == 1 # subdomain of intel.com assert hosts.tier_of_host("gsmarena.com") == 2 + assert hosts.tier_of_host("www.wikidata.org") == 2 assert hosts.tier_of_host("www.kaggle.com") == 3 assert hosts.tier_of_host("example.org") == 0 assert hosts.best_tier(["https://kaggle.com/x", "https://en.wikipedia.org/y"]) == 1 +def test_wikidata_item_is_a_tier_two_source_for_a_complete_brand(): + rec = { + "slug": "google", "founded_year": 1998, + "description_en": "American technology company.", + "source_urls": ["https://www.wikidata.org/wiki/Q95"], + } + score = _score("brand", rec) + assert score.best_tier == 2 + assert score.band == "green" + assert score.subscores["host"] == 18.0 + + def test_complete_authoritative_cpu_is_green(): rec = { "slug": "core-i9-14900k", "cores": 24, "threads": 32,