File size: 369 Bytes
fbf3c28
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from tools.research import _strip_html

def test_strip_html_basic():
    assert _strip_html("<h1>Hello</h1>") == "Hello"

def test_strip_html_with_tags_and_text():
    assert _strip_html("<div><p>Test</p></div>") == "Test"

def test_strip_html_empty():
    assert _strip_html("") == ""

def test_strip_html_no_tags():
    assert _strip_html("Just text") == "Just text"