test_vizInterface
- test_vizInterface.test_vizInterface(show_plots, accuracy, tmp_path)[source]
Validation Test Description
This unit test script tests the
vizInterfacemodule. Though this module is largely hand-tested due to its interactive nature, this script tests the packed protocol buffers in the saved binary file to ensure all elements are captured as expected.- Parameters:
show_plots – Flag controlling whether validation plots are displayed.
accuracy – Absolute accuracy used in the validation checks.
tmp_path – Temporary directory for the generated protobuf file.
- test_vizInterface.test_vizInterface_closes_output_files(tmp_path)[source]
Verify that output files are released on reset and module destruction.
Windows does not permit removing a file while the writing process still holds it open, so these removals also exercise the stream lifetime.
- Parameters:
tmp_path – Temporary directory for the generated protobuf files.
- test_vizInterface.test_vizInterface_long_gravity_body_name_reset()[source]
Validation Test Description
This test verifies that
vizInterfacecan reset with a celestial body name longer than the fixedSpicePlanetStateMsgPayload.PlanetNamestorage. The full body name remains available to the Vizard protocol buffer path, while the default SPICE payload name must be copied without overflowing its backing array.