test_gravCoeffOps

Unit tests for gravity and polyhedral coefficient loading helpers.

The tests exercise gravCoeffOps behavior through the installed gravityEffector bindings.

test_gravCoeffOps.test_load_grav_from_file_to_list_includes_requested_last_degree()[source]

Verify coefficients for the highest requested degree are loaded.

test_gravCoeffOps.test_load_grav_from_file_to_list_preserves_zero_for_missing_order(tmp_path)[source]

Verify missing coefficients remain zero at their degree/order index.

test_gravCoeffOps.test_load_grav_from_file_to_list_rejects_degree_above_file_limit()[source]

Verify an out-of-range degree request raises a clear ValueError.

test_gravCoeffOps.test_load_grav_from_file_to_list_rejects_degree_regression(tmp_path)[source]

Verify decreasing degree rows are rejected.

test_gravCoeffOps.test_load_grav_from_file_to_list_rejects_negative_degree()[source]

Verify negative requested degree raises a clear ValueError.

test_gravCoeffOps.test_load_grav_from_file_to_list_respects_max_degree()[source]

Verify spherical-harmonic loading is truncated to the requested degree.

test_gravCoeffOps.test_load_grav_from_file_to_list_uses_row_order_column(tmp_path)[source]

Verify rows are placed by explicit order value, even if row order is shuffled.

test_gravCoeffOps.test_load_poly_from_file_to_list_rejects_empty_tab_file(tmp_path)[source]

Verify empty .tab polyhedral files are rejected with a clear error.