From 57fc55cc0ffac48e65e958d935a5a08f3f38088b Mon Sep 17 00:00:00 2001 From: tripleee Date: Wed, 18 May 2022 09:33:29 +0300 Subject: [PATCH] test/test_findspam.py: add test for body_text_repeated() --- test/test_findspam.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_findspam.py b/test/test_findspam.py index 40217b743a..00e6d6cc56 100644 --- a/test/test_findspam.py +++ b/test/test_findspam.py @@ -136,6 +136,7 @@ ('homoglyph phone numbers 07', '

Some 1-844i8O2i7S3S fbody

', 'a username', 'math.stackexchange.com', False, False, True), ('homoglyph phone numbers 08', '

Some 844-8O2-7S3S foobody

', 'a username', 'math.stackexchange.com', False, False, True), ('Multiple consecutive homoglyph numbers 1', '

SomeI-888-884-Olll 888-884-OIII +I-972-S34-S446 972-S34-S446 I-628-21S-2I66 628-21S-2l66 1-844i8O2i7S3S 844a8O2a7S3S body

', 'a username', 'math.stackexchange.com', False, False, True), + ('repeated body test', 'need enough interesting text to avoid few unique characters rule' * 15, 'luser', 'stackoverflow.com', False, False, True), ]) def test_findspam(title, body, username, site, body_is_summary, is_answer, expected_spam): post = Post(api_response={'title': title, 'body': body,