Skip to content

Commit 4fb19bf

Browse files
auscompgeekvirtuald
authored andcommitted
FunctionalCommand: Assert lifecycle functions are callable
1 parent fd5356f commit 4fb19bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

commands2/functionalcommand.py

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ def __init__(
3131
:param requirements: the subsystems required by this command"""
3232
super().__init__()
3333

34+
assert callable(onInit)
35+
assert callable(onExecute)
36+
assert callable(onEnd)
37+
assert callable(isFinished)
38+
3439
self._onInit = onInit
3540
self._onExecute = onExecute
3641
self._onEnd = onEnd

0 commit comments

Comments
 (0)