Conditions | 4 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # -*- coding: utf-8 -*- |
||
48 | @staticmethod |
||
49 | def test_flight(): |
||
50 | flight_id = 'TK1' |
||
51 | fr = flightradar24.Api() |
||
52 | flight = fr.get_flight(flight_id) |
||
53 | assert flight['result']['response']['data'] is not None |
||
54 | assert len(flight['result']['response']['data']) > 1 # Expect more than 100 airports |
||
55 | assert flight['result']['response']['data'][0]['identification']['number']['default'] == flight_id |
||
56 | |||
72 |