# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
# Issues & docs: https://github.com/kreuzberg-dev/alef

"""E2e tests for category: registry."""

import pytest  # noqa: F401
from kreuzberg import list_document_extractors, list_embedding_backends, list_ocr_backends, list_post_processors, list_renderers, list_validators


def _alef_e2e_text(value: object) -> str:
    return "" if value is None else str(value)


def _alef_e2e_item_texts(item: object) -> tuple[str, ...]:
    raw_items = getattr(item, "items", None)
    items_text = " ".join(str(value) for value in raw_items) if isinstance(raw_items, list) else ""
    return (
        _alef_e2e_text(item),
        _alef_e2e_text(getattr(item, "kind", None)),
        _alef_e2e_text(getattr(item, "name", None)),
        _alef_e2e_text(getattr(item, "source", None)),
        _alef_e2e_text(getattr(item, "alias", None)),
        _alef_e2e_text(getattr(item, "text", None)),
        _alef_e2e_text(getattr(item, "signature", None)),
        items_text,
    )


def test_list_document_extractors() -> None:
    """List document extractors."""
    _ = list_document_extractors()


def test_list_embedding_backends() -> None:
    """List embedding backends."""
    _ = list_embedding_backends()


def test_list_ocr_backends() -> None:
    """List OCR backends."""
    _ = list_ocr_backends()


def test_list_post_processors() -> None:
    """List post-processors."""
    _ = list_post_processors()


def test_list_renderers() -> None:
    """List renderers."""
    _ = list_renderers()


def test_list_validators() -> None:
    """List validators."""
    _ = list_validators()
