usse/funda-scraper/tests/test_scrape.py

14 lines
311 B
Python
Raw Normal View History

2023-02-20 22:38:24 +00:00
from funda_scraper.scrape import FundaScraper
import pytest
@pytest.fixture
def scraper():
scraper = FundaScraper(area="amsterdam", want_to="rent", find_past=False, n_pages=1)
return scraper
def test_run(scraper):
df = scraper.run()
assert len(scraper.links) > 1
assert df.shape[1] == 21