from ahriman.core.configuration import Configuration
from ahriman.core.report import JinjaTemplate
from ahriman.models.package import Package
from ahriman.models.result import Result


def test_generate(configuration: Configuration, package_ahriman: Package) -> None:
    """
    must generate html report
    """
    path = configuration.getpath("html", "template_path")
    report = JinjaTemplate("html", configuration)
    assert report.make_html(Result(success=[package_ahriman]), path)
