Skip to content

Commit

Permalink
Update unit tests for new terrain
Browse files Browse the repository at this point in the history
  • Loading branch information
zhexu14 committed Nov 1, 2024
1 parent 62f5ceb commit 56ec1ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_terrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ def test_airplane_parking_used(self):
self.assertEqual(len(m.terrain.airports["Aleppo"].parking_slots), 23)

hslots = m.terrain.airports["Aleppo"].free_parking_slots(dcs.helicopters.UH_1H)
self.assertEqual(len(hslots), 16)
self.assertEqual(len(hslots), 17)

slots = m.terrain.airports["Aleppo"].free_parking_slots(dcs.planes.A_10A)
self.assertEqual(len(slots), 8)
self.assertEqual(len(slots), 9)

for x in range(0, 8):
for x in range(0, 9):
airplane_slot = m.terrain.airports["Aleppo"].free_parking_slot(dcs.planes.A_10A)
self.assertIsNotNone(airplane_slot)
airplane_slot.unit_id = x
Expand Down

0 comments on commit 56ec1ee

Please sign in to comment.