fix: ruff formatting
This commit is contained in:
@@ -111,7 +111,11 @@ class TestFundaSearchResults:
|
||||
"postgres": MockPostgresResource(engine, rows),
|
||||
},
|
||||
run_config={
|
||||
"ops": {"funda_search_results": {"config": {"max_pages": 1, **(config or {})}}}
|
||||
"ops": {
|
||||
"funda_search_results": {
|
||||
"config": {"max_pages": 1, **(config or {})}
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
return result
|
||||
@@ -188,7 +192,10 @@ class TestFundaSearchResults:
|
||||
client = MagicMock()
|
||||
client.search_listing.return_value = []
|
||||
self._run(client, config={"object_type": "house, apartment"})
|
||||
assert client.search_listing.call_args[1]["object_type"] == ["house", "apartment"]
|
||||
assert client.search_listing.call_args[1]["object_type"] == [
|
||||
"house",
|
||||
"apartment",
|
||||
]
|
||||
|
||||
def test_energy_label_split_by_comma(self):
|
||||
client = MagicMock()
|
||||
|
||||
@@ -114,7 +114,9 @@ class TestSearchPreviewTable:
|
||||
assert "–" in result
|
||||
|
||||
def test_multiple_rows_correct_count(self):
|
||||
rows = [{"title": f"St {i}", "city": "City", "price": i * 1000} for i in range(5)]
|
||||
rows = [
|
||||
{"title": f"St {i}", "city": "City", "price": i * 1000} for i in range(5)
|
||||
]
|
||||
result = _search_preview_table(rows)
|
||||
lines = result.split("\n")
|
||||
# header + separator + 5 data rows
|
||||
|
||||
Reference in New Issue
Block a user