Skip to content

Commit

Permalink
improved test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanExtreme002 committed Dec 21, 2023
1 parent 273600b commit 28711d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ def test_get_flights_by_airline(airlines = ["SWA", "GLO", "AZU", "UAL", "THY"],


@repeat_test(**repeat_test_config)
def test_get_flights_by_bounds(zones = ["northamerica", "southamerica"], expect = 30):
for zone in zones:
zone = fr_api.get_zones()[zone]
def test_get_flights_by_bounds(target_zones = ["northamerica", "southamerica"], expect = 30):
zones = fr_api.get_zones()

for zone in target_zones:
zone = zones[zone]
bounds = fr_api.get_bounds(zone)

flights = fr_api.get_flights(bounds = bounds)
Expand Down

0 comments on commit 28711d1

Please sign in to comment.