test_vizInterface

test_vizInterface.read_varint(file)[source]

Reads a varint from the file.

test_vizInterface.test_vizInterface(show_plots, accuracy, tmp_path)[source]

Validation Test Description

This unit test script tests the vizInterface module. 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 vizInterface can reset with a celestial body name longer than the fixed SpicePlanetStateMsgPayload.PlanetName storage. 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.