core_file_for OSM fallback is suppressed when evidence_category is present 🟩

This commit is contained in:
Daniel Roth 2026-05-14 08:46:48 +00:00
parent d4cc00b5e3
commit 541d5965b7

View file

@ -163,3 +163,14 @@ def test_core_file_for_unknown_filename_returns_none() -> None:
# Assert
assert result is None
def test_core_file_for_osm_fallback_does_not_fire_when_evidence_category_present() -> None:
# Arrange — OSM+DR-N-A filename but evidence_category is something other than retrofit design
filename = "2512-OSM-H21M900-XX-DR-N-A_Lord Nelson Street 018.pdf"
# Act
result = core_file_for(filename, evidence_category="some other category")
# Assert
assert result is None