예제 #1
0
def test_takeoff_runway() -> None:
    # There are as many take-off as landing at EHLE
    nb_takeoff = sum(1 for _ in belevingsvlucht.takeoff_from_runway(
        "EHLE", threshold_alt=3000))
    nb_landing = sum(1 for f in belevingsvlucht.aligned_on_ils("EHLE"))
    # with go-arounds, sometimes it just doesn't fit
    assert nb_takeoff <= nb_landing
    for aligned in belevingsvlucht.aligned_on_ils("EHLE"):
        after = belevingsvlucht.after(aligned.stop)
        assert after is not None
        takeoff = after.takeoff_from_runway("EHLE", threshold_alt=3000).next()
        # If a landing is followed by a take-off, then it's on the same runway
        assert takeoff is None or aligned.max("ILS") == takeoff.max("runway")
예제 #2
0
def test_landing_ils() -> None:
    aligned: Optional["Flight"] = belevingsvlucht.aligned_on_ils(
        "EHAM").next()  # noqa: B305
    assert aligned is not None
    assert aligned.max("ILS") == "06"

    aligned = airbus_tree.aligned_on_ils("EDHI").next()  # noqa: B305
    assert aligned is not None
    assert aligned.max("ILS") == "23"
예제 #3
0
def test_landing_ils() -> None:
    aligned: Flight = next(belevingsvlucht.aligned_on_ils("EHAM"))
    assert aligned.max("ILS") == "06"

    aligned = next(airbus_tree.aligned_on_ils("EDHI"))
    assert aligned.max("ILS") == "23"