MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / test_reduce_html_reduction_0

Function test_reduce_html_reduction_0

tests/test_cleanup_html.py:86–98  ·  view source on GitHub ↗

Test reduce_html at reduction level 0 (minification only).

()

Source from the content-addressed store, hash-verified

84
85
86def test_reduce_html_reduction_0():
87 """Test reduce_html at reduction level 0 (minification only)."""
88 raw_html = """
89 <html>
90 <body>
91 <p> Some text </p>
92 </body>
93 </html>
94 """
95 # At reduction level 0, the result equals minify_html(raw_html)
96 reduced = reduce_html(raw_html, 0)
97 expected = minify_html(raw_html)
98 assert reduced == expected
99
100
101def test_reduce_html_reduction_1():

Callers

nothing calls this directly

Calls 2

reduce_htmlFunction · 0.90
minify_htmlFunction · 0.90

Tested by

no test coverage detected