mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-02 00:54:52 +02:00
Add commenting on the spider test
This commit is contained in:
parent
ed4e73adbf
commit
0ce57a026e
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue