mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-04-27 14:54:52 +02:00
ae6a2e83e9
See PR description for details
27 lines
569 B
Python
27 lines
569 B
Python
import unittest
|
|
|
|
from spider.spider import check_and_rate_site
|
|
|
|
from pprint import pprint
|
|
|
|
class TestSpiderr(unittest.TestCase):
|
|
|
|
def test_url1(self):
|
|
|
|
entry = {
|
|
"url": "https://httpbin.org/html",
|
|
"type": "type",
|
|
"state": "state",
|
|
"level": "level",
|
|
"district": "district",
|
|
"city": "city",
|
|
}
|
|
|
|
url = "https://httpbin.org/html"
|
|
result = check_and_rate_site(entry)
|
|
|
|
self.assertEqual(result["input_url"], url)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|