ajout(test_main): question 1 assertion si bien une liste

This commit is contained in:
2026-02-07 19:02:19 +01:00
parent 683582a253
commit 76017e3ea3

View File

@@ -103,5 +103,6 @@ def test_soup(scraper: Scraper):
def test_getProductName(scraper: Scraper):
jsondata = scraper.getjsondata("nino-negri-5-stelle-sfursat-2022.html")
assert jsondata["productName"] == "Nino Negri : 5 Stelle Sfursat 2022"
assert isinstance(jsondata["items"], list)
assert len(jsondata["items"]) > 0
assert jsondata["items"][0]["offerPrice"] == 390