"""Smoke layer (TS-21): package imports + public surface reachable + trivial happy path, <100ms."""

from __future__ import annotations

import pytest

pytestmark = pytest.mark.smoke


def test_package_imports_and_public_surface() -> None:
    import mgf.fed

    assert mgf.fed.__version__
    for name in mgf.fed.__all__:
        assert hasattr(mgf.fed, name)


def test_cli_version_happy_path() -> None:
    from mgf.fed.__main__ import main

    with pytest.raises(SystemExit) as exc:
        main(["--version"])
    assert exc.value.code == 0
