[robotpy] Mirror robotpy's commands-v2 (#8369)

Project import generated by Copybara.

GitOrigin-RevId: 715c8e8372d936f447f2937aab6b1a22dc619126
This commit is contained in:
PJ Reiniger
2025-11-14 00:55:54 -05:00
committed by GitHub
parent 6e6f8dd7cc
commit 1a99a348cb
84 changed files with 8974 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
from typing import TYPE_CHECKING
import commands2
from util import * # type: ignore
if TYPE_CHECKING:
from .util import *
import pytest
def test_printCommandSchedule(capsys, scheduler: commands2.CommandScheduler):
command = commands2.PrintCommand("Test!")
scheduler.schedule(command)
scheduler.run()
assert not scheduler.isScheduled(command)
assert capsys.readouterr().out == "Test!\n"