test_magneticFieldWMMParser

test_magneticFieldWMMParser.coefficient_lines()[source]

Return the shipped WMM coefficient file as individual lines.

test_magneticFieldWMMParser.make_module(path)[source]

Configure a WMM module with a spacecraft above the equator.

test_magneticFieldWMMParser.test_empty_model(tmp_path, coefficient_lines, header_only)[source]

An empty file or a header without coefficients is rejected.

test_magneticFieldWMMParser.test_invalid_coefficient_record(tmp_path, coefficient_lines, record)[source]

Malformed fields and invalid indices fail during module reset.

test_magneticFieldWMMParser.test_invalid_header(tmp_path, coefficient_lines, header)[source]

Missing epoch or model-name fields cannot initialize a WMM model.

test_magneticFieldWMMParser.test_valid_file_compatibility(tmp_path, coefficient_lines, line_ending, terminator)[source]

Valid line endings and EOF termination preserve the computed field.