From deadf881b0f96adad9feb8616ca0e9af13adc635 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 9 Oct 2024 18:05:08 +0200 Subject: [PATCH] is now str not bytes --- changedetectionio/tests/test_ignore_regex_text.py | 10 +++++----- changedetectionio/tests/test_ignore_text.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/changedetectionio/tests/test_ignore_regex_text.py b/changedetectionio/tests/test_ignore_regex_text.py index 06c60ea47..2268d34fa 100644 --- a/changedetectionio/tests/test_ignore_regex_text.py +++ b/changedetectionio/tests/test_ignore_regex_text.py @@ -33,11 +33,11 @@ def test_strip_regex_text_func(): stripped_content = html_tools.strip_ignore_text(test_content, ignore_lines) - assert b"but 1 lines" in stripped_content - assert b"igNORe-cAse text" not in stripped_content - assert b"but 1234 lines" not in stripped_content - assert b"really" not in stripped_content - assert b"not this" not in stripped_content + assert "but 1 lines" in stripped_content + assert "igNORe-cAse text" not in stripped_content + assert "but 1234 lines" not in stripped_content + assert "really" not in stripped_content + assert "not this" not in stripped_content # Check line number reporting stripped_content = html_tools.strip_ignore_text(test_content, ignore_lines, mode="line numbers") diff --git a/changedetectionio/tests/test_ignore_text.py b/changedetectionio/tests/test_ignore_text.py index 37d21d1bf..8485d039e 100644 --- a/changedetectionio/tests/test_ignore_text.py +++ b/changedetectionio/tests/test_ignore_text.py @@ -23,8 +23,8 @@ def test_strip_text_func(): stripped_content = html_tools.strip_ignore_text(test_content, ignore_lines) - assert b"sometimes" not in stripped_content - assert b"Some content" in stripped_content + assert "sometimes" not in stripped_content + assert "Some content" in stripped_content def set_original_ignore_response():