ewoksmx.tests.models.test_characterisation_model#

Functions

test_input_model_invalid_strategy(test_metadata)

Test that an invalid strategy name raises a ValidationError.

test_input_model_valid(test_metadata)

Test that valid data_paths and metadata input data passes validation.

test_invalid_strings(invalid_input)

Verify that completely invalid crystallographic strings raise errors.

test_metadata_physical_constraints()

Test that physical values like detector_distance must be positive.

test_output_model_fine_sliced(test_metadata)

Test the output model for fine-sliced output.

test_output_model_not_fine_sliced(test_metadata)

Test the ouput model for not fine-sliced output.

test_processing_plan_defaults()

Test that optional fields default to None and anomalous_data defaults to False.

test_processing_plan_forced_cell_validation()

Test that forced_cell must be a tuple of exactly 6 floats.

test_processing_plan_forced_space_group_validation()

Test the force space group validator.

test_processing_plan_invalid_forced_space_group_validation()

Test invalid force space group validator.

test_processing_plan_numeric_ranges()

Test constraints like aimed_resolution > 0 and completeness 0-100.

test_processing_plan_strategy_types()

Test the regex pattern for strategy_type (only 'full' or 'fast').

test_processing_plan_valid_floats(field, value)

Parameterised test for valid numeric inputs.

test_valid_mx_space_groups(input_sg, expected)

Verify that valid MX space groups are accepted and normalized.