Ran ruff format etc.
This commit is contained in:
@@ -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