Fichiers
mail2sms/tests/test_text_utils.py
T
jimmyGALLAND 9b4759b4d1
Build and Push Docker Image / test-and-build (push) Successful in 46s
Initial commit
2026-02-25 23:50:50 +01:00

8 lignes
233 B
Python

import pytest
from mail2sms.text_utils import html_to_sms_text
def test_html_cleaning():
html = "<h1>Hello</h1><p>World <strong>123</strong></p>"
result = html_to_sms_text(html)
assert result == "Hello World 123"