|
|
|
@ -23,7 +23,9 @@ def test_strip_text_func():
|
|
|
|
|
|
|
|
|
|
ignore_lines = ["sometimes"]
|
|
|
|
|
|
|
|
|
|
fetcher = fetch_site_status.perform_site_check(datastore=False)
|
|
|
|
|
from ..fetch_processor import json_html_plaintext
|
|
|
|
|
|
|
|
|
|
fetcher = json_html_plaintext.perform_site_check(datastore=False)
|
|
|
|
|
stripped_content = html_tools.strip_ignore_text(test_content, ignore_lines)
|
|
|
|
|
|
|
|
|
|
assert b"sometimes" not in stripped_content
|
|
|
|
|