Description
The project uses rules in label_generator.py to assign flight-event labels. These rules do not currently have automated unit tests.
Create tests to verify that representative telemetry values generate the expected labels.
Tasks
Acceptance Criteria
Description
The project uses rules in label_generator.py to assign flight-event labels. These rules do not currently have automated unit tests.
Create tests to verify that representative telemetry values generate the expected labels.
Tasks
Set up pytest for the inference folder.
Create a test file for FlightEventLabeler.
Add at least one test for each event:
TAXI
TAKEOFF
CRUISE
APPROACH
LANDING
TURN_LEFT
TURN_RIGHT
HIGH_SPEED
LOW_SPEED
HIGH_ALTITUDE
LOW_ALTITUDE
HIGH_G_FORCE
NORMAL_FLIGHT
Test heading wraparound, such as 359° to 1°.
Test values at important boundaries.
Add instructions for running the tests.
Acceptance Criteria