12 lines
305 B
Python
12 lines
305 B
Python
from recipe_graph import scrape
|
|
from bs4 import BeautifulSoup
|
|
|
|
import pytest
|
|
|
|
|
|
def test_load_page():
|
|
page = scrape.load_page("https://hs.andreistoica.ca:4943")
|
|
assert type(page) == BeautifulSoup
|
|
|
|
page = scrape.load_page("https://hs.andreistoica.ca:4943/some-nonesense")
|
|
assert page == None |