fix: gaps badge reads verify's severity counts

The badge refiltered coverage details for missing required firmware and
ignored hle_fallback: a required file the core replaces by HLE is INFO in
verify and passes --strict, yet showed as a red required gap. The count
now comes from severity_counts through packs.verdicts.blocking_missing.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 19:50:10 +01:00
1 parent ff3b2699bd
commit 380b3df823
5 files changed
+33 -23

No files matched your search

+2 -1
View File
@@ -44,7 +44,8 @@ class CoverageReadsTheGivenProfiles(unittest.TestCase):
def fake_verify(_config, _db, emulators_dir, **_kwargs):
seen.append(emulators_dir)
return {"status_counts": {}, "total_files": 0, "undeclared_files": [], "details": []}
return {"status_counts": {}, "severity_counts": {}, "verification_mode": "existence",
"total_files": 0, "undeclared_files": [], "details": []}
with mock.patch.object(readme, "verify_platform", fake_verify), \
mock.patch.object(readme, "load_emulator_profiles", return_value={}):