Test with custom max_len.
(self)
| 287 | assert result == text |
| 288 | |
| 289 | def test_custom_max_len(self): |
| 290 | """Test with custom max_len.""" |
| 291 | text = "x" * 200 |
| 292 | result = format_content_preview(text, max_len=50) |
| 293 | |
| 294 | assert result.endswith("...") |
| 295 | assert len(result) <= 55 |
| 296 | |
| 297 | def test_multiline_content(self): |
| 298 | """Test with multiline content.""" |
nothing calls this directly
no test coverage detected