From 94edc2e94b89132389c90f9fed7097bc181b5ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Wed, 28 Jan 2026 22:11:52 +0100 Subject: [PATCH] fix: test fichier a part --- main.py | 3 --- test_main.py | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 test_main.py 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"