correction: certains bugs sur get_json_data

This commit is contained in:
2026-02-05 18:21:50 +01:00
parent 367d995feb
commit 76475d4a2a
2 changed files with 17 additions and 10 deletions

View File

@@ -1,6 +1,11 @@
from main import *
from main import Scraper
scraper = Scraper()
def test_soup():
assert scraper.getsoup().find('h1').text[3:12] == "MILLESIMA"
assert Scraper().getsoup().find('h1')\
.text[3:12] == "MILLESIMA"
def test_getProductName():
assert Scraper("chateau-gloria-2016.html").get_json_data()['productName']\
== "Château Gloria 2016"