Add commenting on the spider test

This commit is contained in:
Marian Steinbach 2018-10-03 20:48:20 +02:00
parent ed4e73adbf
commit 0ce57a026e

View file

@ -1,12 +1,19 @@
import unittest
from pprint import pprint
from spider.spider import check_and_rate_site
from pprint import pprint
class TestSpider(unittest.TestCase):
class TestSpiderr(unittest.TestCase):
"""
Simply calls the spider.check_and_rate_site function
with httpbin.org URLs. We don't assert a lot here,
but at least make sure that most of our code is executed
in tests.
"""
def test_url1(self):
def test_html(self):
"""Loads a simple HTML web page"""
entry = {
"url": "https://httpbin.org/html",