Refactored (Split and Truncate) Overflow Engine (#1038)

This commit is contained in:
Chris Caron
2024-01-06 17:03:00 -05:00
committed by GitHub
parent f3c699ab82
commit 1da1d4800c
4 changed files with 3696 additions and 75 deletions

View File

@ -652,7 +652,7 @@ def test_plugin_discord_overflow(mock_post):
# Ensure we never exceed 2000 characters
for entry in results:
assert len(entry['title']) <= instance.title_maxlen
assert len(entry['title']) + len(entry['body']) < instance.body_maxlen
assert len(entry['title']) + len(entry['body']) <= instance.body_maxlen
@mock.patch('requests.post')