mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-01 16:44:51 +02:00
Modify charset check to assert page_content in results
This commit is contained in:
parent
70290f0140
commit
7b2c3c15ff
|
@ -16,6 +16,8 @@ class Checker(AbstractChecker):
|
|||
super().__init__(config, previous_results)
|
||||
|
||||
def run(self):
|
||||
assert 'page_content' in self.previous_results
|
||||
|
||||
results = {}
|
||||
|
||||
for url in self.config.urls:
|
||||
|
@ -27,7 +29,6 @@ class Checker(AbstractChecker):
|
|||
"""
|
||||
Expects page_content_dict['content'] to carry the HTML content
|
||||
"""
|
||||
|
||||
page_content = self.previous_results['page_content'][url]
|
||||
assert 'content' in page_content
|
||||
assert 'response_headers' in page_content
|
||||
|
|
Loading…
Reference in a new issue