mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
14 lines
429 B
Python
14 lines
429 B
Python
from datetime import datetime
|
|
|
|
from dcs.task import OptFormation
|
|
|
|
from game.flightplan.waypointactions.taskcontext import TaskContext
|
|
from game.flightplan.waypointoptions.formation import Formation
|
|
|
|
|
|
def test_formation() -> None:
|
|
tasks = list(Formation.LINE_ABREAST_OPEN.iter_tasks(TaskContext(datetime.now())))
|
|
assert len(tasks) == 1
|
|
task = tasks[0]
|
|
assert task.dict() == OptFormation.line_abreast_open().dict()
|