chore: refactor ingestion

This commit is contained in:
Stijnvandenbroek
2026-03-05 21:36:53 +00:00
parent d5d3c2b649
commit 2ab1d71b53
13 changed files with 156 additions and 71 deletions

View File

@@ -260,9 +260,17 @@ class TestFundaPriceHistory:
assert mat[0].metadata["count"].value == 0
def test_price_history_inserted(self):
engine, _, _ = make_mock_engine(select_rows=[("1234567",)])
engine, _, _ = make_mock_engine(
select_rows=[
(
"1234567",
"https://www.funda.nl/detail/koop/amsterdam/app/87654321/",
"Teststraat 1",
"1234AB",
),
]
)
client = MagicMock()
client.get_listing.return_value = make_mock_listing(_DETAIL_LISTING_DATA)
client.get_price_history.return_value = [
{
"price": 350000,