diff --git a/tests/pilot_recorder.py b/tests/pilot_recorder.py index 7157451..da73a14 100644 --- a/tests/pilot_recorder.py +++ b/tests/pilot_recorder.py @@ -81,6 +81,7 @@ class PilotRecorder(): self.app_on_event = on_event def record_event(self, event: Event) -> None: + assert self.app is not None, "app should be set if we're recording an event from it" if self.replaying: return if isinstance(event, (MouseDown, MouseMove, MouseUp)):