HomeHarvest/tests/test_redfin.py

25 lines
567 B
Python
Raw Normal View History

2023-09-15 15:17:37 -07:00
from homeharvest import scrape_property
def test_redfin():
results = [
2023-09-16 14:34:10 -07:00
scrape_property(
location="2530 Al Lipscomb Way",
site_name="redfin"
),
scrape_property(
location="Phoenix, AZ, USA",
site_name="redfin"
),
scrape_property(
location="Dallas, TX, USA",
site_name="redfin"
),
scrape_property(
location="85281",
site_name="redfin"
),
]
2023-09-15 15:17:37 -07:00
assert all([result is not None for result in results])