mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Evidence category matching is case-insensitive 🟥
This commit is contained in:
parent
f2bbb44207
commit
157a36f0cd
1 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue