mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
core_file_for OSM fallback is suppressed when evidence_category is present 🟩
This commit is contained in:
parent
d4cc00b5e3
commit
541d5965b7
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue