fix: test fichier a part

This commit is contained in:
2026-01-28 22:11:52 +01:00
parent 22d64370a9
commit 94edc2e94b
2 changed files with 4 additions and 3 deletions

View File

@@ -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
View File

@@ -0,0 +1,4 @@
from main import *
def test_soup():
assert getsoup("https://example.com").find('h1').text == "Example Domain"