- realtor support

This commit is contained in:
Zachary Hampton
2023-10-03 23:33:53 -07:00
parent f06a01678c
commit f8c0dd766d
2 changed files with 59 additions and 18 deletions

View File

@@ -11,6 +11,8 @@ def test_realtor_comps():
result = scrape_property(
location="2530 Al Lipscomb Way",
radius=0.5,
sold_last_x_days=180,
listing_type="sold",
)
assert result is not None and len(result) > 0
@@ -28,6 +30,21 @@ def test_realtor_last_x_days_sold():
assert all([result is not None for result in [days_result_30, days_result_10]]) and len(days_result_30) != len(days_result_10)
def test_realtor_single_property():
results = [
scrape_property(
location="15509 N 172nd Dr, Surprise, AZ 85388",
listing_type="for_sale",
),
scrape_property(
location="2530 Al Lipscomb Way",
listing_type="for_sale",
)
]
assert all([result is not None for result in results])
def test_realtor():
results = [
scrape_property(