Fix deprecated datetime.utcnow() and test assertion for clean_text
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user