"""TS-21 — canonical smoke: package imports + every public __all__ name reachable. Fast."""

from __future__ import annotations

import pytest

pytestmark = [pytest.mark.smoke]


def test_every_public_name_reachable() -> None:
    import mgf.http as m

    for name in m.__all__:
        assert hasattr(m, name), f"mgf.http.{name} in __all__ but not importable"


def test_version_is_a_string() -> None:
    import mgf.http as m

    assert isinstance(m.__version__, str) and m.__version__
