mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Retrofit Design Doc startswith check removed 🟥
This commit is contained in:
parent
6922ff3e06
commit
5c652d9485
1 changed files with 12 additions and 0 deletions
|
|
@ -44,6 +44,18 @@ def test_get_core_file_type_returns_retrofit_design_doc_for_evidence_category()
|
|||
assert result == CoreFiles.RETROFIT_DESIGN_DOC
|
||||
|
||||
|
||||
def test_get_core_file_type_returns_improvement_option_evaluation_via_substring() -> None:
|
||||
# Arrange
|
||||
client = make_client()
|
||||
file = make_file(file_name="6000802 - NG4 4HD - Improvement Option Evaluation.pdf")
|
||||
|
||||
# Act
|
||||
result = client._get_core_file_type(file)
|
||||
|
||||
# Assert
|
||||
assert result == CoreFiles.IMPROVEMENT_OPTION_EVALUATION
|
||||
|
||||
|
||||
def test_get_core_file_type_evidence_category_match_is_case_insensitive() -> None:
|
||||
# Arrange
|
||||
client = make_client()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue