Ran ruff format etc.

This commit is contained in:
Nitzan Pomerantz
2025-10-31 19:02:33 +02:00
parent 6d2b1ab4ab
commit 02e69b6d3b
6 changed files with 89 additions and 23 deletions
+3 -3
View File
@@ -170,9 +170,9 @@ class TestAPIDataQuality:
# Check deal amounts are reasonable (10K to 100M NIS)
for deal in deals:
if deal.deal_amount > 0:
assert (
10000 <= deal.deal_amount <= 100000000
), f"Deal amount {deal.deal_amount} outside reasonable range"
assert 10000 <= deal.deal_amount <= 100000000, (
f"Deal amount {deal.deal_amount} outside reasonable range"
)
@pytest.mark.api_health
def test_dates_are_recent(self, client):
+8 -6
View File
@@ -120,10 +120,11 @@ class TestGovmapClient:
)
# We'll test the coordinate parsing logic by calling the method that uses it
with patch.object(client, "autocomplete_address", return_value=mock_autocomplete_result), \
patch.object(client, "get_deals_by_radius", return_value=[]), \
patch.object(client, "get_street_deals", return_value=[]), \
patch.object(client, "get_neighborhood_deals", return_value=[]):
with patch.object(
client, "autocomplete_address", return_value=mock_autocomplete_result
), patch.object(client, "get_deals_by_radius", return_value=[]), patch.object(
client, "get_street_deals", return_value=[]
), patch.object(client, "get_neighborhood_deals", return_value=[]):
result = client.find_recent_deals_for_address("test", years_back=1)
assert result == []
@@ -333,8 +334,9 @@ class TestGovmapClient:
],
)
with patch.object(client, "autocomplete_address", return_value=mock_autocomplete_result), \
pytest.raises(ValueError, match="No coordinates found"):
with patch.object(
client, "autocomplete_address", return_value=mock_autocomplete_result
), pytest.raises(ValueError, match="No coordinates found"):
client.find_recent_deals_for_address("test", years_back=1)