is now str not bytes

refactor-filters
dgtlmoon 3 months ago
parent 77ef42c367
commit deadf881b0

@ -33,11 +33,11 @@ def test_strip_regex_text_func():
stripped_content = html_tools.strip_ignore_text(test_content, ignore_lines) stripped_content = html_tools.strip_ignore_text(test_content, ignore_lines)
assert b"but 1 lines" in stripped_content assert "but 1 lines" in stripped_content
assert b"igNORe-cAse text" not in stripped_content assert "igNORe-cAse text" not in stripped_content
assert b"but 1234 lines" not in stripped_content assert "but 1234 lines" not in stripped_content
assert b"really" not in stripped_content assert "really" not in stripped_content
assert b"not this" not in stripped_content assert "not this" not in stripped_content
# Check line number reporting # Check line number reporting
stripped_content = html_tools.strip_ignore_text(test_content, ignore_lines, mode="line numbers") stripped_content = html_tools.strip_ignore_text(test_content, ignore_lines, mode="line numbers")

@ -23,8 +23,8 @@ def test_strip_text_func():
stripped_content = html_tools.strip_ignore_text(test_content, ignore_lines) stripped_content = html_tools.strip_ignore_text(test_content, ignore_lines)
assert b"sometimes" not in stripped_content assert "sometimes" not in stripped_content
assert b"Some content" in stripped_content assert "Some content" in stripped_content
def set_original_ignore_response(): def set_original_ignore_response():

Loading…
Cancel
Save