mirror of
https://github.com/guezoloic/millesima-ai-engine.git
synced 2026-03-28 18:03:47 +00:00
13 lines
269 B
Python
13 lines
269 B
Python
from main import Scraper
|
|
|
|
|
|
def test_soup():
|
|
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"
|
|
)
|