mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Classify the landlord Age column into a construction-age-band category 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e71df5df99
commit
fc591c6550
1 changed files with 13 additions and 0 deletions
|
|
@ -38,3 +38,16 @@ def test_build_columns_wires_a_glazing_classifier_column() -> None:
|
|||
assert len(columns) == 1
|
||||
assert columns[0].name == "glazing"
|
||||
assert columns[0].source_column == "Glazing"
|
||||
|
||||
|
||||
def test_build_columns_wires_a_construction_age_band_classifier_column() -> None:
|
||||
# Arrange
|
||||
chat_gpt = cast(ChatGPT, object())
|
||||
|
||||
# Act
|
||||
columns = _build_columns({"construction_age_band": "Age"}, chat_gpt, None)
|
||||
|
||||
# Assert — one column, named construction_age_band, reading the "Age" header.
|
||||
assert len(columns) == 1
|
||||
assert columns[0].name == "construction_age_band"
|
||||
assert columns[0].source_column == "Age"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue