We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc6e6d6 commit 07ad2dfCopy full SHA for 07ad2df
tests/test_command_schedule.py
@@ -88,3 +88,16 @@ def test_notScheduledCancel(scheduler: commands2.CommandScheduler):
88
command = commands2.Command()
89
90
scheduler.cancel(command)
91
+
92
+def test_getAllSubystems(scheduler: commands2.CommandScheduler):
93
+ sub1 = commands2.Subsystem()
94
+ sub1.setName("test123")
95
+ sub2 = commands2.Subsystem()
96
+ sub2.setName("hey")
97
+ start_spying_on(sub1)
98
+ start_spying_on(sub2)
99
+ scheduler.registerSubsystem(sub1)
100
+ scheduler.registerSubsystem(sub2)
101
+ sublist = scheduler.getAllSubsystems()
102
+ assert sublist[0].getName() == "test123"
103
+ assert sublist[1].getName() == "hey"
0 commit comments