Evidence category matching is case-insensitive 🟥

This commit is contained in:
Daniel Roth 2026-05-13 16:14:07 +00:00
parent f2bbb44207
commit 157a36f0cd

View file

@ -42,3 +42,18 @@ def test_get_core_file_type_returns_retrofit_design_doc_for_evidence_category()
# Assert
assert result == CoreFiles.RETROFIT_DESIGN_DOC
def test_get_core_file_type_evidence_category_match_is_case_insensitive() -> None:
# Arrange
client = make_client()
file = make_file(
file_name="2512-OSM-H21M900-XX-DR-N-A_Lord Nelson Street 018.pdf",
evidence_category="Retrofit Design",
)
# Act
result = client._get_core_file_type(file)
# Assert
assert result == CoreFiles.RETROFIT_DESIGN_DOC