"""Tier-0 smoke — build-broken detector.

Minimal post-install sanity: the package imports and its public decoder
surface is present. No fixtures, no I/O. If this fails, the wheel is
broken; don't run the codec/property suite.
"""

from __future__ import annotations

import pytest

pytestmark = pytest.mark.smoke


def test_public_surface_importable() -> None:
    import mgf.tele.teltonika as m

    expected = {
        "decode_avl_packet",
        "decode_codec8",
        "decode_codec8e",
        "TeltonikaProvider",
        "CODEC_8",
        "CODEC_8_EXTENDED",
    }
    assert expected <= set(m.__all__)


def test_codec_ids_are_distinct() -> None:
    from mgf.tele.teltonika import CODEC_8, CODEC_8_EXTENDED

    assert CODEC_8 != CODEC_8_EXTENDED
