moved from urllib to requests
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-18 08:57:33 -04:00
parent 794dbe7d88
commit 76e0438062
4 changed files with 16 additions and 15 deletions

View File

@@ -4,9 +4,9 @@ from bs4 import BeautifulSoup
import pytest
def test_load_recipe():
page = scrape.load_recipe("https://hs.andreistoica.ca:4943")
def test_load_page():
page = scrape.load_page("https://hs.andreistoica.ca:4943")
assert type(page) == BeautifulSoup
page = scrape.load_recipe("https://hs.andreistoica.ca:4943/some-nonesense")
page = scrape.load_page("https://hs.andreistoica.ca:4943/some-nonesense")
assert page == None