This is the substantive body text that should be retained.
It is much longer than the tiny class-matched wrapper.
"""Content extraction behavior for the canonical services.search.content module.""" import pytest pytest.importorskip("bs4") from services.search import content as service_content class _FakeResponse: status_code = 200 headers = {"Content-Type": "text/html; charset=utf-8"} content = b"" def __init__(self, text: str): self.text = text def raise_for_status(self): return None @pytest.mark.parametrize("module", [service_content]) def test_content_fetcher_extracts_og_image_and_body_fallback(module, tmp_path, monkeypatch): html = """
This is the substantive body text that should be retained.
It is much longer than the tiny class-matched wrapper.