from bopytex.planner import fake_planner from bopytex.service import orcherstrator from bopytex.tasks import Task def test_service(): options = {"quantity": 3, "template": "tpl_src.tex"} service = orcherstrator(options, fake_planner.simple) for i, task in enumerate(service): assert task == Task("Do", args={"number": i}, deps=[], output=f"{i}")