def test_search() -> None: assert (airports.search("denmark").query( 'type == "large_airport"') # type: ignore .data.icao.str.startswith("EK").all()) assert (airports.search("ITALY").query( 'type == "large_airport"') # type: ignore .data.icao.str.startswith("LI").all())
def test_search() -> None: denmark = airports.search("denmark") assert denmark is not None denmark_large = denmark.query('type == "large_airport"') assert denmark_large is not None assert denmark_large.data.icao.str.startswith("EK").all() italy = airports.search("ITALY") assert italy is not None italy_large = italy.query('type == "large_airport"') assert italy_large is not None assert italy_large.data.icao.str.startswith("LI").all()
def getUSAirports(): if logLvl >= 1: print("Getting US Airports from remote database") usAirports = airports.search(country) usAirports.to_json(airportsFilename) if logLvl >= 1: print("Found " + str(len(usAirports)) + " US Airports") return usAirports
def test_search() -> None: assert airports.search("denmark").data.icao.str.startswith("EK").all() assert airports.search("ITALY").data.icao.str.startswith("LI").all()
def getUSAirports(): usAirports = airports.search(country) usAirports.to_json(filename) return usAirports