Fix deprecated datetime.utcnow() and test assertion for clean_text

This commit is contained in:
n0mad1k
2026-03-19 08:56:08 -04:00
parent c79f81d9c6
commit 0cfd7dc32d
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ class TestTextUtils:
def test_clean_text(self):
from utils.text_utils import clean_text
assert clean_text("hello\x00world") == "hello world" # null bytes removed (control chars)
assert clean_text("hello\x00world") == "helloworld" # null bytes stripped
assert clean_text("line1\r\nline2") == "line1\nline2"
assert clean_text("a\n\n\n\nb") == "a\n\nb"