Skip to content

Commit 6184202

Browse files
Remove product search from test_product_scraping
1 parent 22436ef commit 6184202

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

vestiairecollective-scraper/test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ def validate_or_fail(item, validator):
9696
@pytest.mark.asyncio
9797
@pytest.mark.flaky(reruns=3, reruns_delay=30)
9898
async def test_product_scraping():
99-
search_data = await vestiairecollective.scrape_search(
100-
url="https://www.vestiairecollective.com/search/?q=louis+vuitton", max_pages=1
101-
)
102-
product_urls = ["https://vestiairecollective.com/" + item["link"] for item in search_data][:3]
99+
product_urls = [
100+
"https://us.vestiairecollective.com/men-accessories/watches/patek-philippe/gold-yellow-gold-patek-philippe-watch-51820408.shtml",
101+
"https://us.vestiairecollective.com/men-accessories/watches/patek-philippe/gold-gold-perpetual-calendar-patek-philippe-watch-55732655.shtml",
102+
"https://us.vestiairecollective.com/men-accessories/watches/patek-philippe/gold-yellow-gold-patek-philippe-watch-51820408.shtml",
103+
]
103104
products_data = await vestiairecollective.scrape_products(
104105
urls=product_urls
105106
)

0 commit comments

Comments
 (0)