core_file_for matches remaining core file types via filename prefix 🟥

This commit is contained in:
Daniel Roth 2026-05-14 08:43:41 +00:00
parent 3ef8a59122
commit a2dc945bf3

View file

@ -141,3 +141,14 @@ def test_core_file_for_osm_pattern_returns_retrofit_design_doc_without_evidence_
# Assert
assert result == CoreFiles.RETROFIT_DESIGN_DOC
def test_core_file_for_prefix_returns_photopack() -> None:
# Arrange
filename = "Photopack_123456_V1.pdf"
# Act
result = core_file_for(filename)
# Assert
assert result == CoreFiles.PHOTOPACK