"""
测试包导入与基础可用性（Rules/python.mdc: pytest）。
"""


def test_django_base_ai_version() -> None:
    """django_base_ai 包可导入且 __version__ 存在。"""
    import django_base_ai

    assert hasattr(django_base_ai, "__version__")
    assert isinstance(django_base_ai.__version__, str)
    assert len(django_base_ai.__version__) >= 5


def test_json_response_classes() -> None:
    """utils.json_response 响应类可导入。"""
    from django_base_ai.utils.json_response import (
        DetailResponse,
        ErrorResponse,
        SuccessResponse,
    )

    assert SuccessResponse is not None
    assert DetailResponse is not None
    assert ErrorResponse is not None
