from planemapper.models import Aircraft


def test_aircraft_defaults() -> None:
    a = Aircraft(icao="ABC123", lat=51.5, lon=-0.1)
    assert a.heading == 0.0
    assert a.altitude_ft == 0
    assert a.callsign == ""
    assert a.category == ""
    assert a.is_mlat is False
    assert a.is_stale is False


def test_aircraft_full() -> None:
    a = Aircraft(
        icao="ABC123",
        lat=51.5,
        lon=-0.1,
        heading=90.0,
        altitude_ft=5000,
        callsign="BAW1",
        category="A3",
        is_mlat=True,
        is_stale=False,
    )
    assert a.heading == 90.0
    assert a.callsign == "BAW1"
    assert a.is_mlat is True
