mirror of
https://github.com/guezoloic/millesima-ai-engine.git
synced 2026-03-28 18:03:47 +00:00
fix: test fichier a part
This commit is contained in:
3
main.py
3
main.py
@@ -4,9 +4,6 @@ import requests as rq
|
|||||||
def getsoup(s: str) -> BeautifulSoup:
|
def getsoup(s: str) -> BeautifulSoup:
|
||||||
return BeautifulSoup(rq.get(s).text, 'html.parser')
|
return BeautifulSoup(rq.get(s).text, 'html.parser')
|
||||||
|
|
||||||
def test_soup():
|
|
||||||
assert getsoup("https://example.com").find('h1').text == "Example Domain"
|
|
||||||
|
|
||||||
soup = getsoup("https://www.millesima.fr/")
|
soup = getsoup("https://www.millesima.fr/")
|
||||||
|
|
||||||
def nimportequoi() :
|
def nimportequoi() :
|
||||||
|
|||||||
4
test_main.py
Normal file
4
test_main.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
from main import *
|
||||||
|
|
||||||
|
def test_soup():
|
||||||
|
assert getsoup("https://example.com").find('h1').text == "Example Domain"
|
||||||
Reference in New Issue
Block a user