fix tests
All checks were successful
Build and publish Docker image / build-and-push (push) Successful in 5m12s
CI / Check (push) Successful in 9m1s

This commit is contained in:
Andras Schmelczer 2026-07-14 14:11:59 +01:00
parent 56b5d9f7df
commit e544b946c9
4 changed files with 44 additions and 4 deletions

View file

@ -1900,6 +1900,10 @@ def test_finalize_listings_promotes_overlay_columns_and_filters_to_listing_rows(
"_actual_listing_date": [None, None],
"_actual_listing_status": ["For sale", "For sale"],
"_actual_listing_features": [["Garden"], ["Parking"]],
"_actual_price_history": [
[{"date": "2024-01-01", "price": 600_000, "reason": "Reduced"}],
None,
],
"_actual_bedrooms": [3, 4],
"_actual_bathrooms": [1, 2],
"_actual_price_qualifier": ["", ""],
@ -1930,6 +1934,9 @@ def test_finalize_listings_promotes_overlay_columns_and_filters_to_listing_rows(
"_actual_listing_date": pl.Datetime("us"),
"_actual_listing_status": pl.Utf8,
"_actual_listing_features": pl.List(pl.Utf8),
"_actual_price_history": pl.List(
pl.Struct({"date": pl.Utf8, "price": pl.Int64, "reason": pl.Utf8})
),
"_actual_bedrooms": pl.Int32,
"_actual_bathrooms": pl.Int32,
"_actual_price_qualifier": pl.Utf8,
@ -1997,6 +2004,10 @@ def test_finalize_listings_dedupes_fanned_out_listing_rows() -> None:
"_actual_listing_date": [None, None],
"_actual_listing_status": ["For sale", "For sale"],
"_actual_listing_features": [["Garden"], ["Garden"]],
"_actual_price_history": [
[{"date": "2024-01-01", "price": 600_000, "reason": "Reduced"}],
[{"date": "2024-01-01", "price": 600_000, "reason": "Reduced"}],
],
"_actual_bedrooms": [3, 3],
"_actual_bathrooms": [1, 1],
"_actual_price_qualifier": ["", ""],
@ -2027,6 +2038,9 @@ def test_finalize_listings_dedupes_fanned_out_listing_rows() -> None:
"_actual_listing_date": pl.Datetime("us"),
"_actual_listing_status": pl.Utf8,
"_actual_listing_features": pl.List(pl.Utf8),
"_actual_price_history": pl.List(
pl.Struct({"date": pl.Utf8, "price": pl.Int64, "reason": pl.Utf8})
),
"_actual_bedrooms": pl.Int32,
"_actual_bathrooms": pl.Int32,
"_actual_price_qualifier": pl.Utf8,