Ran ruff format etc.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user