| Conditions | 6 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # -*- coding: utf-8 -*- |
||
| 27 | @staticmethod |
||
| 28 | def test_airlines(): |
||
| 29 | fr = flightradar24.Api() |
||
| 30 | airlines = fr.get_airlines() |
||
| 31 | assert airlines['rows'] is not None |
||
| 32 | assert len(airlines['rows']) > 100 # Expect more than 100 airports |
||
| 33 | check_tk = 0 |
||
| 34 | for airline in airlines['rows']: |
||
| 35 | if airline['ICAO'] == "THY": |
||
| 36 | check_tk = 1 |
||
| 37 | assert check_tk == 1 |
||
| 38 | |||
| 72 |