diff --git a/main.py b/main.py index c06c5d8..d6c33b3 100644 --- a/main.py +++ b/main.py @@ -4,9 +4,6 @@ import requests as rq def getsoup(s: str) -> BeautifulSoup: 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/") def nimportequoi() : diff --git a/test_main.py b/test_main.py new file mode 100644 index 0000000..4af0b52 --- /dev/null +++ b/test_main.py @@ -0,0 +1,4 @@ +from main import * + +def test_soup(): + assert getsoup("https://example.com").find('h1').text == "Example Domain"