"""TS-21 — canonical smoke: the package imports and every public __all__ name is
reachable. Fast (no fixtures, no I/O)."""

from __future__ import annotations

import pytest

pytestmark = [pytest.mark.smoke]


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

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


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

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