"""Tests for archwiki_rag.convert.""" from __future__ import annotations from pathlib import Path from bs4 import BeautifulSoup from python_pkg.archwiki_rag import convert PAGE_HTML = """
no heading
", "html.parser") assert convert.extract_title(soup, "Systemd") == "Systemd" def test_falls_back_on_empty_h1(self) -> None: soup = BeautifulSoup("body